aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-08-15 05:04:34 +0000
committerdos-reis <gdr@axiomatics.org>2010-08-15 05:04:34 +0000
commitf6a007e3df81c872452d5a271fbd5dabfa514cc1 (patch)
treee87d8d3795d57751b945028c9539d314f357979e /config
parenta88f78e5d08f790f8be05e4fddbb99748f908630 (diff)
downloadopen-axiom-f6a007e3df81c872452d5a271fbd5dabfa514cc1.tar.gz
Include LDFLAGS in LINK_SHRLIB
Diffstat (limited to 'config')
-rw-r--r--config/var-def.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/var-def.mk b/config/var-def.mk
index 89c03c29..1a08e370 100644
--- a/config/var-def.mk
+++ b/config/var-def.mk
@@ -85,11 +85,11 @@ CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -static $(LDFLAGS)
## to be very selective about when and where to use. Sadly, that ends
## up negating the whole point of having Libtool in the first place.
ifeq (@oa_use_libtool_for_shared_lib@,no)
-LINK_SHRLIB = $(CC)
-CXXLINK_SHRLIB = $(CXX)
+LINK_SHRLIB = $(CC) $(LDFLAGS)
+CXXLINK_SHRLIB = $(CXX) $(LDFLAGS)
else
-LINK_SHRLIB = $(LIBTOOL) --tag=CC --mode=link $(CC)
-CXXLINK_SHRLIB = $(LIBTOOL) --tag=CXX --mode=link $(CC)
+LINK_SHRLIB = $(LIBTOOL) --tag=CC --mode=link $(CC) $(LDFLAGS)
+CXXLINK_SHRLIB = $(LIBTOOL) --tag=CXX --mode=link $(CC) $(LDFLAGS)
endif