PATCH: makefile support for BP tests

Greg McGary greg@mcgary.org
Wed Jul 26 10:47:00 GMT 2000


Andreas Schwab <schwab@suse.de> writes:

> $(if ...) is a recent addition to GNU make (version 3.78), so you should
> either update the version checks or rewrite this so that it works with
> version 3.75 (the earliest we currently require).

Thanks for catching that.

Everyone can keep 3.75 for now...

@@ -486,7 +500,10 @@ run-program-prefix = $(elf-objpfx)$(rtld
 else
 run-program-prefix =
 endif
-built-program-cmd = $(run-program-prefix) $(built-program-file)
+# Never use $(run-program-prefix) for the statically-linked %-bp test programs
+built-program-cmd = $(patsubst %,$(run-program-prefix),\
+			$(filter-out %-bp,$(built-program-file))) \
+		    $(built-program-file)
 
 ifndef LD
 LD := ld -X

I assume you approve of the rest, so I'll commit it.

Greg


More information about the Libc-hacker mailing list