summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
Diffstat (limited to 'make/template')
-rw-r--r--make/template/main.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 5d6e2a0c9..e92006b3e 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -17,7 +17,6 @@ SOCKETENGINE = @SOCKETENGINE@
CXXFLAGS = -pipe -fPIC -DPIC
LDLIBS = -pthread -lstdc++
LDFLAGS =
-SHARED = -shared -rdynamic
CORELDFLAGS = -rdynamic -L. $(LDFLAGS)
PICLDFLAGS = -fPIC -shared -rdynamic $(LDFLAGS)
BASE = "$(DESTDIR)@BASE_DIR@"
@@ -45,8 +44,8 @@ INSTMODE_LIB = 0644
@ELSIFEQ $(SYSTEM) darwin
CXXFLAGS += -DDARWIN -frtti
LDLIBS += -ldl
- SHARED = -bundle -twolevel_namespace -undefined dynamic_lookup
- CORELDFLAGS = -dynamic -bind_at_load -L.
+ CORELDFLAGS = -dynamic -bind_at_load -L. $(LDFLAGS)
+ PICLDFLAGS = -fPIC -shared -bundle -twolevel_namespace -undefined dynamic_lookup $(LDFLAGS)
@ELSIFEQ $(SYSTEM) interix
CXXFLAGS += -D_ALL_SOURCE -I/usr/local/include
@ENDIF