From: Roland McGrath Date: Sat, 2 Jul 2011 23:59:14 +0000 (-0700) Subject: Fail if format.lds comes out empty. X-Git-Tag: glibc-2.15~489^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e9b6af4a9bb2aad0e1929e88b52009d14cb6831;p=thirdparty%2Fglibc.git Fail if format.lds comes out empty. --- diff --git a/ChangeLog b/ChangeLog index a5167235e74..63887b79135 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2011-07-02 Roland McGrath + * Makerules ($(common-objpfx)format.lds): Fail if result is empty. + * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to containing directory rather than embedding absolute directory names. diff --git a/Makerules b/Makerules index 3234fc23ce0..d70a196dedf 100644 --- a/Makerules +++ b/Makerules @@ -993,6 +993,7 @@ $(common-objpfx)format.lds: $(..)scripts/output-format.sed \ $(LINK.o) -shared $(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS.so) \ -x c /dev/null -o $@.so -Wl,--verbose -v 2>&1 \ | sed -n -f $< > $@.new + test -s $@.new rm -f $@.so mv -f $@.new $@ common-generated += format.lds