about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-07-29 21:04:09 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-13 09:58:33 -0700
commit545a42f7bf800128c171202430143dd30b96c2d9 (patch)
tree69b44ffb0c1167d5522eca3822b12321d3b07c81 /elf/Makefile
parenta6bd872286b981b08577218c00e1ea693bad6095 (diff)
downloadglibc-hjl/pr21864/master.tar.gz
glibc-hjl/pr21864/master.tar.xz
glibc-hjl/pr21864/master.zip
Don't compile non-lib modules as lib modules [BZ #21864] hjl/pr21864/master
Some programs have more than one source files.  These non-lib modules
should not be compiled with -DMODULE_NAME=libc.  This patch puts these
non-lib modules in $(others-extras) and adds $(others-extras) to
all-nonlib.

	[BZ #21864]
	* Makerules (all-nonlib): Add $(others-extras).
	* catgets/Makefile (others-extras): New.
	* elf/Makefile (others-extras): Likewise.
	* nss/Makefile (others-extras): Likewise.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index d314a5fa7e..7cf959aabd 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -112,6 +112,7 @@ install-rootsbin += ldconfig
 
 ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon static-stubs
 extra-objs	+= $(ldconfig-modules:=.o)
+others-extras   = $(ldconfig-modules)
 endif
 endif