Track dependencies for .oS-only objects

This commit is contained in:
Andreas Schwab 2012-05-05 09:56:47 +02:00
parent 656416c965
commit 5bd66283db
3 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2012-05-16 Andreas Schwab <schwab@linux-m68k.org> 2012-05-16 Andreas Schwab <schwab@linux-m68k.org>
* Makerules (+depfiles): Also collect depfiles from .oS in
$(extra-objs).
* sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
.oS, $(libnldbl-routines)).
* Makerules (native-compile-mkdep-flags): Define. * Makerules (native-compile-mkdep-flags): Define.
* sunrpc/Makefile (extra-objs): Add $(addprefix * sunrpc/Makefile (extra-objs): Add $(addprefix
cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs). cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).

View File

@ -647,6 +647,7 @@ endif
+depfiles := $(sources:.c=.d) \ +depfiles := $(sources:.c=.d) \
$(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.os=.o))) \ $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.os=.o))) \
$(patsubst %.oS,%.d,$(filter %.oS,$(extra-objs))) \
$(patsubst %.o,%.d,$(filter %.o,$(extra-test-objs:.os=.o))) \ $(patsubst %.o,%.d,$(filter %.o,$(extra-test-objs:.os=.o))) \
$(addsuffix .d,$(tests) $(xtests) $(test-srcs)) $(addsuffix .d,$(tests) $(xtests) $(test-srcs))
ifeq ($(build-programs),yes) ifeq ($(build-programs),yes)

View File

@ -44,5 +44,6 @@ libnldbl-calls = asprintf dprintf fprintf fscanf fwprintf fwscanf iovfscanf \
libnldbl-routines = $(libnldbl-calls:%=nldbl-%) libnldbl-routines = $(libnldbl-calls:%=nldbl-%)
libnldbl-inhibit-o = $(object-suffixes) libnldbl-inhibit-o = $(object-suffixes)
libnldbl-static-only-routines = $(libnldbl-routines) libnldbl-static-only-routines = $(libnldbl-routines)
extra-objs += $(addsuffix .oS, $(libnldbl-routines))
endif endif