Commit 876c9e52 authored by Alexander Strange's avatar Alexander Strange Committed by Fiona Glaser

Allow compilation with non-Apple GCC on OS X

parent ddbac0c6
......@@ -180,7 +180,7 @@ case $host_os in
CFLAGS="$CFLAGS -falign-loops=16"
LDFLAGS="$LDFLAGS -lm"
if [ "$pic" = "no" ]; then
CFLAGS="$CFLAGS -mdynamic-no-pic"
cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
fi
;;
freebsd*)
......@@ -255,8 +255,10 @@ case $host_cpu in
AS="yasm"
if [ "$SYS" = MACOSX ];then
ASFLAGS="$ASFLAGS -f macho64 -m amd64 -DPIC -DPREFIX"
CFLAGS="$CFLAGS -arch x86_64"
LDFLAGS="$LDFLAGS -arch x86_64"
if cc_check '' "-arch x86_64"; then
CFLAGS="$CFLAGS -arch x86_64"
LDFLAGS="$LDFLAGS -arch x86_64"
fi
elif [ "$SYS" = MINGW ]; then
ASFLAGS="$ASFLAGS -f win32 -m amd64 -DPREFIX"
else
......
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