Skip to content

Commit

Permalink
Merge pull request #40 from feld/freebsd-makefile
Browse files Browse the repository at this point in the history
FreeBSD makefile fix
  • Loading branch information
akash-akya authored Feb 23, 2024
2 parents d6ddcad + 28e85bb commit be87c33
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ CFLAGS ?= -Wall -Werror -Wextra -Wno-unused-parameter -pedantic -O2 -fPIC

ifeq ($(UNAME), Darwin)
TARGET_CFLAGS ?= -undefined dynamic_lookup -dynamiclib -Wextra
else ifeq (${UNAME}, NetBSD)
# c_src/spawner.c fails to compile on NetBSD and Darwin with -D_POSIX_C_SOURCE=200809L
# Should be fixed once NetBSD 10 get released:
# http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57871
TARGET_CFLAGS ?= -shared
else
else ifeq (${UNAME}, Linux)
# -D_POSIX_C_SOURCE=200809L needed on musl
CFLAGS += -D_POSIX_C_SOURCE=200809L
TARGET_CFLAGS ?= -shared
else
# c_src/spawner.c fails to compile on FreeBSD, NetBSD, and Darwin with -D_POSIX_C_SOURCE=200809L
# Should be fixed once NetBSD 10 get released:
# http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57871
TARGET_CFLAGS ?= -shared
endif

all: priv/exile.so priv/spawner
Expand Down

0 comments on commit be87c33

Please sign in to comment.