summary refs log tree commit diff
path: root/Rules
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-07-26 18:18:43 +0000
committerGreg McGary <greg@mcgary.org>2000-07-26 18:18:43 +0000
commitac556388135e5bf0578cb24bc958870ff3a0f00c (patch)
tree4c3c8c7213d349cd412270e4346b94f85d7521e0 /Rules
parente04b831ab49dfb24f1c1a70b3816bff5515cbab9 (diff)
downloadglibc-ac556388135e5bf0578cb24bc958870ff3a0f00c.tar.gz
glibc-ac556388135e5bf0578cb24bc958870ff3a0f00c.tar.xz
glibc-ac556388135e5bf0578cb24bc958870ff3a0f00c.zip
* Makeconfig (+link-bounded, link-libc-bounded,
link-extra-libs-bounded): New variables. 
(built-program-cmd): Omit $(run-program-prefix) for static BP tests. 
* Makerules (do-tests-clean, common-mostlyclean): Remove BP test files. 
* Rules (tests-bp.out): New variable. 
(tests): Conditionally add BP tests. 
(binaries-bounded): Add variable and associated rule. 
* csu/Makefile [build-bounded] (extra-objs, install-lib): 
Move conditional stuff after place where condition is defined.
Diffstat (limited to 'Rules')
-rw-r--r--Rules13
1 files changed, 12 insertions, 1 deletions
diff --git a/Rules b/Rules
index f3d8bdd746..9881848646 100644
--- a/Rules
+++ b/Rules
@@ -88,7 +88,10 @@ endif
 ifeq ($(cross-compiling),yes)
 tests: $(addprefix $(objpfx),$(tests) $(test-srcs))
 else
-tests: $(tests:%=$(objpfx)%.out)
+ifeq ($(build-bounded),yes)
+tests-bp.out = $(tests:%=$(objpfx)%-bp.out)
+endif
+tests: $(tests:%=$(objpfx)%.out) $(tests-bp.out)
 endif
 
 ifeq ($(build-programs),yes)
@@ -115,6 +118,14 @@ $(addprefix $(objpfx),$(binaries-static)): %: %.o \
 	$(+link-static)
 endif
 
+ifeq ($(build-bounded),yes)
+binaries-bounded = $(addsuffix -bp,$(tests) $(test-srcs))
+$(addprefix $(objpfx),$(binaries-bounded)): %-bp: %.ob \
+  $(sort $(filter $(common-objpfx)lib%,$(link-libc-bounded))) \
+  $(addprefix $(csu-objpfx),start.ob) $(+preinit) $(+postinit)
+	$(+link-bounded)
+endif
+
 ifneq "$(strip $(tests) $(test-srcs))" ""
 # These are the implicit rules for making test outputs
 # from the test programs and whatever input files are present.