From db19cffe3deedaebfd1bd1de824dcd3d8bd7b144 Mon Sep 17 00:00:00 2001 From: Kenji Rikitake Date: Tue, 25 Nov 2014 07:25:14 +0900 Subject: 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` --- plugins/c_src.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/c_src.mk') 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 -- cgit v1.2.3