diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-09 12:40:36 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-10 18:38:42 -0400 |
commit | 1570b13174827cea444d15dc12c6a47cb7c69b28 (patch) | |
tree | d88f0a5517f938d1e9ce6c5253cab17762ff5974 /make | |
parent | b157bcdbbc799a05e2801bd9b1f64797dc3c6a57 (diff) |
Build fixes for darwin
Diffstat (limited to 'make')
-rw-r--r-- | make/template/main.mk | 5 |
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 |