Commit 64f4e249 authored by Henrik Gramner's avatar Henrik Gramner
Browse files

osx: Add -D_DARWIN_C_SOURCE to CFLAGS

OSX doesn't like _POSIX_C_SOURCE being defined when _DARWIN_C_SOURCE isn't.
parent 00597d74
......@@ -570,6 +570,7 @@ case $host_os in
darwin*)
SYS="MACOSX"
libm="-lm"
CFLAGS="$CFLAGS -D_DARWIN_C_SOURCE"
if [ "$pic" = "no" ]; then
cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment