Skip to content

Commit

Permalink
Don't build .os objects of static-only-routines for extra libs
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-schwab committed Mar 13, 2013
1 parent 05087fb commit 9dc7c64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-03-13 Andreas Schwab <[email protected]>

* extra-lib.mk (extra-objs): Add static-only-routines as .oS
instead of .os.

2013-03-13 Joseph Myers <[email protected]>

* timezone/zic.c: Update from tzcode 2013b.
Expand Down
7 changes: 6 additions & 1 deletion extra-lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ extra-objs += $(foreach o,$(filter-out .os .oS,$(object-suffixes-$(lib))),\
$($(lib)-shared-only-routines),\
$(all-$(lib)-routines))))
ifneq (,$(filter .os,$(object-suffixes-$(lib))))
extra-objs += $(all-$(lib)-routines:%=%.os)
extra-objs += $(patsubst %,%.os,$(filter-out $($(lib)-static-only-routines),\
$(all-$(lib)-routines)))
endif
ifneq (,$(filter .oS,$(object-suffixes-$(lib))))
extra-objs += $(patsubst %,%.oS,$(filter $($(lib)-static-only-routines),\
$(all-$(lib)-routines)))
endif
alltypes-$(lib) := $(foreach o,$(object-suffixes-$(lib)),\
$(objpfx)$(patsubst %,$(libtype$o),\
Expand Down

0 comments on commit 9dc7c64

Please sign in to comment.