diff options
author | Roland McGrath <roland@hack.frob.com> | 2011-06-11 00:45:12 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2011-07-14 20:50:17 -0700 |
commit | 5c55070081c27168d27145afdf6a92cd56c9abb3 (patch) | |
tree | 07be43c6115f3d97746612a57c8fda82031d45a5 /Makerules | |
parent | a6928d5102a89f152fe9d17abb26346dc8cefc9c (diff) | |
download | glibc-5c55070081c27168d27145afdf6a92cd56c9abb3.zip glibc-5c55070081c27168d27145afdf6a92cd56c9abb3.tar.gz glibc-5c55070081c27168d27145afdf6a92cd56c9abb3.tar.bz2 |
Use linker --print-output-format option if available.
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |