2001-04-02  Andreas Schwab  <schwab@suse.de>

	* Makerules (build-module): Make sure exit codes get checked
	properly and remove unnecessary slashes.
This commit is contained in:
Ulrich Drepper 2001-04-18 16:03:07 +00:00
parent 71e1637e40
commit 2f53aec963
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2001-04-02 Andreas Schwab <schwab@suse.de>
* Makerules (build-module): Make sure exit codes get checked
properly and remove unnecessary slashes.
2001-04-17 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):

View File

@ -462,17 +462,17 @@ ifeq (yes,$(elf))
# not for shared objects
define build-module
$(build-module-helper) \
-o $@.new $(csu-objpfx)/abi-note.o -Wl,--verbose \
-o $@.new $(csu-objpfx)abi-note.o -Wl,--verbose \
$(LDLIBS-$(@F:lib%.so=%).so) 2>&1 | \
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/^.*\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \
> $@.lds; \
rm -f $@.new; \
$(build-module-helper) -o $@ -T $@.lds \
-Wl,--whole-archive $(csu-objpfx)/abi-note.o \
> $@.lds
rm -f $@.new
$(build-module-helper) -o $@ -T $@.lds \
-Wl,--whole-archive $(csu-objpfx)abi-note.o \
$(filter-out $(map-file) $(+preinit) $(+postinit),$^) \
$(no-whole-archive) $(LDLIBS-$(@F:lib%.so=%).so); \
rm -f $@.lds
$(no-whole-archive) $(LDLIBS-$(@F:lib%.so=%).so)
rm -f $@.lds
endef
else
define build-module