use: LINK_MODE += foo
authoraland <aland>
Thu, 24 Mar 2005 22:58:11 +0000 (22:58 +0000)
committeraland <aland>
Thu, 24 Mar 2005 22:58:11 +0000 (22:58 +0000)
rather than: LINK_MODE=foo
to allow modules to over-ride link mode

src/modules/rules.mak

index 9f13217..aed8dc8 100644 (file)
@@ -77,9 +77,9 @@ ifneq ($(TARGET),)
 #  Yes, this is a horrible hack.
 #
 ifeq ($(findstring $(TARGET),$(STATIC_MODULES)),)
-LINK_MODE=-export-dynamic
+LINK_MODE +=-export-dynamic
 else
-LINK_MODE=-static
+LINK_MODE +=-static
 endif
 
 #
@@ -87,7 +87,7 @@ endif
 #  link mode to static.
 #
 ifneq ($(USE_SHARED_LIBS),yes)
-LINK_MODE=-static
+LINK_MODE += -static
 endif
 
 $(TARGET).la: $(DYNAMIC_OBJS)