From 2f1889c3bdccc3b02d1741aeb4c0493434b12309 Mon Sep 17 00:00:00 2001 From: reid Date: Fri, 6 Jun 2003 12:30:38 +0000 Subject: [PATCH] [project @ 2003-06-06 12:30:38 by reid] Add definition for comma. Include GC_C_OBJS in BUILD_LIB --- mk/boilerplate.mk | 6 ++++++ mk/target.mk | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mk/boilerplate.mk b/mk/boilerplate.mk index cc32c25..1066cd5 100644 --- a/mk/boilerplate.mk +++ b/mk/boilerplate.mk @@ -53,6 +53,12 @@ ifneq "$(way)" "" _way := _$(way) endif + +# When using $(patsubst ...) and friends, you can't use a literal comma +# freely - so we use ${comma} instead. (See PACKAGE_CPP_OPTS in package.mk +# for an example usage.) +comma=, + # ----------------------------------------------------------------------------- # Now follow the pieces of boilerplate # The "-" signs tell make not to complain if they don't exist diff --git a/mk/target.mk b/mk/target.mk index 9499aa9..b0fce7c 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -304,7 +304,7 @@ SRC_HC_OPTS += -split-objs ifeq "$(ArSupportsInput)" "" define BUILD_LIB $(RM) $@ $@.tmp -(echo $(STUBOBJS) $(C_OBJS); $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print) | xargs $(AR) $@ +(echo $(STUBOBJS) $(C_OBJS) $(GC_C_OBJS); $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print) | xargs $(AR) $@ $(RANLIB) $@ endef else @@ -312,6 +312,7 @@ define BUILD_LIB $(RM) $@ $@.tmp echo $(STUBOBJS) > $@.list echo $(C_OBJS) >> $@.list +echo $(GC_C_OBJS) >> $@.list $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print >> $@.list $(AR) $(AR_OPTS) $@ $(ArSupportsInput) $@.list $(RM) $@.list -- 1.7.10.4