Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/Makefile b/Makefile
index 11c1186..8914a94 100644
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,32 @@
calling_from_make:
mix compile
UNAME := $(shell uname)
CFLAGS ?= -Wall -Werror -Wextra -Wno-unused-parameter -pedantic -O2 -fPIC
ifeq ($(UNAME), Darwin)
TARGET_CFLAGS ?= -undefined dynamic_lookup -dynamiclib -Wextra
else
TARGET_CFLAGS ?= -shared
-# c_src/spawner.c fails to compile on NetBSD and Darwin with -D_POSIX_C_SOURCE=200809L
+# c_src/spawner.c fails to compile on (Free|Net)BSD and Darwin with -D_POSIX_C_SOURCE=200809L
# Meanwhile *-linux-musl needs it
-ifneq (${UNAME}, NetBSD)
+ifeq (, $(filter ${UNAME}, FreeBSD NetBSD))
CFLAGS += -D_POSIX_C_SOURCE=200809L
endif
endif
all: priv/exile.so priv/spawner
@echo > /dev/null
priv/exile.so: c_src/exile.c
mkdir -p priv
$(CC) -std=c99 -I$(ERL_INTERFACE_INCLUDE_DIR) $(TARGET_CFLAGS) $(CFLAGS) c_src/exile.c -o priv/exile.so
priv/spawner: c_src/spawner.c
mkdir -p priv
$(CC) -std=c99 $(CFLAGS) c_src/spawner.c -o priv/spawner
clean:
@rm -rf priv/exile.so priv/spawner

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 4:48 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39585
Default Alt Text
(1 KB)

Event Timeline