aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-12-14 16:08:46 +0100
committerLoïc Hoguin <[email protected]>2015-12-14 16:08:46 +0100
commit5c66e48d606e27f78c95b09d27d0c058bc9f9bf2 (patch)
tree74e7a62d2e4246e71e84b3ad783fd05cca1f62e1
parentcf6b49b3d51804f0314ccebb35c4d1a3231e3adc (diff)
downloadesdl2-5c66e48d606e27f78c95b09d27d0c058bc9f9bf2.tar.gz
esdl2-5c66e48d606e27f78c95b09d27d0c058bc9f9bf2.tar.bz2
esdl2-5c66e48d606e27f78c95b09d27d0c058bc9f9bf2.zip
Update erlang.mk
Fixes Linux/OSX that I just broke.
-rw-r--r--erlang.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/erlang.mk b/erlang.mk
index 54a7936..f0a29b2 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -5609,19 +5609,23 @@ ifeq ($(PLATFORM),msys2)
CXXFLAGS ?= -O3 -finline-functions -Wall
else ifeq ($(PLATFORM),darwin)
CC ?= cc
- CFLAGS ?= -O3 -std=c99 -arch x86_64 -finline-functions -Wall -Wmissing-prototypes -fPIC
+ CFLAGS ?= -O3 -std=c99 -arch x86_64 -finline-functions -Wall -Wmissing-prototypes
CXXFLAGS ?= -O3 -arch x86_64 -finline-functions -Wall -fPIC
LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
else ifeq ($(PLATFORM),freebsd)
CC ?= cc
- CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -fPIC
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
CXXFLAGS ?= -O3 -finline-functions -Wall -fPIC
else ifeq ($(PLATFORM),linux)
CC ?= gcc
- CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -fPIC
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
CXXFLAGS ?= -O3 -finline-functions -Wall -fPIC
endif
+ifneq ($(PLATFORM),msys2)
+ CFLAGS += -fPIC
+endif
+
CFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"
CXXFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"