forked from osmocom/wireshark
LIBFFI_CFLAGS and LIBFFI_LIBS are defined only to suppress the attempt
to run pkg-config to get their values; they should be set equal to the values that would be returned by pkg-config for libffi with the --cflags and --libs arguments, respectively. They should *NOT* include the values of CFLAGS and LDFLAGS supplied in the environment; those should be handled separately. svn path=/trunk/; revision=50389
This commit is contained in:
parent
a4e5839f1f
commit
b1a91b434c
|
@ -316,7 +316,7 @@ if [ ! -f glib-$GLIB_VERSION-done ] ; then
|
|||
# OS X ships with libffi, but doesn't provide its pkg-config file;
|
||||
# explicitly specify LIBFFI_CFLAGS and LIBFFI_LIBS, so the configure
|
||||
# script doesn't try to use pkg-config to get the appropriate
|
||||
# CFLAGS and LIBS.
|
||||
# C flags and loader flags.
|
||||
#
|
||||
# And, what's worse, at least with the version of Xcode that comes
|
||||
# with Leopard, /usr/include/ffi/fficonfig.h doesn't define MACOSX,
|
||||
|
@ -343,11 +343,9 @@ if [ ! -f glib-$GLIB_VERSION-done ] ; then
|
|||
if grep -qs '#define.*MACOSX' $includedir/ffi/fficonfig.h
|
||||
then
|
||||
# It's defined, nothing to do
|
||||
CFLAGS="$CFLAGS -Wno-format-nonliteral" LIBFFI_CFLAGS="$CFLAGS -I$includedir/ffi" LIBFFI_LIBS="$LDFLAGS -lffi" ./configure || exit 1
|
||||
CFLAGS="$CFLAGS -Wno-format-nonliteral" LIBFFI_CFLAGS="$CFLAGS -I$includedir/ffi" LIBFFI_LIBS="$LDFLAGS -lffi" env | egrep LIBFFI_CFLAGS
|
||||
LIBFFI_CFLAGS="-I $includedir/ffi" LIBFFI_LIBS="-lffi" CFLAGS="$CFLAGS -Wno-format-nonliteral" ./configure || exit 1
|
||||
else
|
||||
CFLAGS="$CFLAGS -DMACOSX -Wno-format-nonliteral" LIBFFI_CFLAGS="$CFLAGS -I$includedir/ffi" LIBFFI_LIBS="LDFLAGS-lffi" ./configure || exit 1
|
||||
CFLAGS="$CFLAGS -DMACOSX -Wno-format-nonliteral" LIBFFI_CFLAGS="$CFLAGS -I$includedir/ffi" LIBFFI_LIBS="LDFLAGS-lffi" env | egrep LIBFFI_CFLAGS
|
||||
LIBFFI_CFLAGS="-I $includedir/ffi" LIBFFI_LIBS="-lffi" CFLAGS="$CFLAGS -DMACOSX -Wno-format-nonliteral" ./configure || exit 1
|
||||
fi
|
||||
make $MAKE_BUILD_OPTS || exit 1
|
||||
# Apply patch: we depend on libffi, but pkg-config doesn't get told.
|
||||
|
|
Loading…
Reference in New Issue