Commit dcdc8efa authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Fix compilation on mac: Openssl headers are now to be retrieved with...

Fix compilation on mac: Openssl headers are now to be retrieved with brew/macports and the linker should be told to use SystemConfiguration and CoreFoundation
parent e8521ca8
......@@ -89,6 +89,9 @@ SOFIA_PLAT_CFLAGS=
# This is a dirty hack, but shuts up all the warnings
case "$host" in
*-openbsd*) SOFIA_PLAT_CFLAGS="-DNULL='((void *)0L)'";;
*-darwin15*)
LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
SOFIA_CFLAGS="$SOFIA_CFLAGS -I/usr/local/include";;
*) ;;
esac
......@@ -104,8 +107,8 @@ AC_ARG_ENABLE(64,
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
if test "${enable_64}" = "yes"; then
SOFIA_CFLAGS="$SOFIA_CFLAGS -m64"
LDFLAGS="-m64 -Wl,-64"
export PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
LDFLAGS="$LDFLAGS -m64 -Wl,-64"
export PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
fi
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