aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKenji Rikitake <[email protected]>2014-11-25 07:25:14 +0900
committerKenji Rikitake <[email protected]>2014-11-25 07:25:14 +0900
commitdb19cffe3deedaebfd1bd1de824dcd3d8bd7b144 (patch)
treeeecbe2376186d60a9bf702b8a105a2782bb74e81 /plugins
parent7fe8a2d7c41bb1c4a94d404a6a79b0e694b8dc9e (diff)
downloaderlang.mk-db19cffe3deedaebfd1bd1de824dcd3d8bd7b144.tar.gz
erlang.mk-db19cffe3deedaebfd1bd1de824dcd3d8bd7b144.tar.bz2
erlang.mk-db19cffe3deedaebfd1bd1de824dcd3d8bd7b144.zip
plugins/c_src.mk: update CFLAGS/CXXFLAGS/LDFLAGS for OS X
* Add the following flags to LDFLAGS needed at linkage for OS X, and remove the following flags from CFLAGS and CPPFLAGS: `-arch x86_64 -flat_namespace -undefined suppress`
Diffstat (limited to 'plugins')
-rw-r--r--plugins/c_src.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/c_src.mk b/plugins/c_src.mk
index 87e834b..7c1fd2e 100644
--- a/plugins/c_src.mk
+++ b/plugins/c_src.mk
@@ -15,8 +15,9 @@ C_SRC_OUTPUT ?= $(CURDIR)/priv/$(PROJECT).so
UNAME_SYS := $(shell uname -s)
ifeq ($(UNAME_SYS), Darwin)
CC ?= cc
- CFLAGS ?= -O3 -std=c99 -arch x86_64 -flat_namespace -undefined suppress -finline-functions -Wall -Wmissing-prototypes
- CXXFLAGS ?= -O3 -arch x86_64 -flat_namespace -undefined suppress -finline-functions -Wall
+ CFLAGS ?= -O3 -std=c99 -arch x86_64 -finline-functions -Wall -Wmissing-prototypes
+ CXXFLAGS ?= -O3 -arch x86_64 -finline-functions -Wall
+ LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
else ifeq ($(UNAME_SYS), FreeBSD)
CC ?= cc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes