summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makerules3
-rw-r--r--catgets/Makefile1
-rw-r--r--elf/Makefile1
-rw-r--r--nss/Makefile1
4 files changed, 5 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 9bb707c168..8f1324d8e9 100644
--- a/Makerules
+++ b/Makerules
@@ -1359,7 +1359,8 @@ lib := testsuite
include $(patsubst %,$(..)libof-iterator.mk,$(cpp-srcs-left))
endif
-all-nonlib := $(strip $(tests-internal) $(test-internal-extras) $(others))
+all-nonlib := $(strip $(tests-internal) $(test-internal-extras) \
+ $(others) $(others-extras))
ifneq (,$(all-nonlib))
cpp-srcs-left = $(all-nonlib)
lib := nonlib
diff --git a/catgets/Makefile b/catgets/Makefile
index e5f49491fb..39aab67c14 100644
--- a/catgets/Makefile
+++ b/catgets/Makefile
@@ -38,6 +38,7 @@ tests-special += $(objpfx)tst-catgets-mem.out
endif
gencat-modules = xmalloc
+others-extras = $(gencat-modules)
# To find xmalloc.c
vpath %.c ../locale/programs
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
diff --git a/nss/Makefile b/nss/Makefile
index 1e298c28f1..0369249f30 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -47,6 +47,7 @@ CPPFLAGS-getent.c = -DHAVE_SUNRPC=$(have-sunrpc)
others := getent makedb
install-bin := getent makedb
makedb-modules = xmalloc hash-string
+others-extras = $(makedb-modules)
extra-objs += $(makedb-modules:=.o)
tests-static = tst-field