From 1570b13174827cea444d15dc12c6a47cb7c69b28 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Thu, 9 Sep 2010 12:40:36 -0500 Subject: Build fixes for darwin --- make/template/main.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'make/template/main.mk') 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 -- cgit v1.2.3