From 5c55070081c27168d27145afdf6a92cd56c9abb3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 11 Jun 2011 00:45:12 -0700 Subject: Use linker --print-output-format option if available. --- Makerules | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index d70a196..a8b575c 100644 --- a/Makerules +++ b/Makerules @@ -990,11 +990,15 @@ install: $(inst_slibdir)/libc.so$(libc.so-version) $(common-objpfx)format.lds: $(..)scripts/output-format.sed \ $(common-objpfx)config.make \ $(common-objpfx)config.h $(..)Makerules +ifneq (unknown,$(output-format)) + echo > $@.new 'OUTPUT_FORMAT($(output-format))' +else $(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 +endif mv -f $@.new $@ common-generated += format.lds -- cgit v1.1