forked from osmocom/wireshark
macos-setup.sh: don't build libxml2 with Python.
At least on Monterey, with Xcode 13.1, the linker whines that we weren't granted the Sacred and Holy Right to link with the Python 2.7 framework. As far as I know, we have no need to use that framework, so configure it out.
This commit is contained in:
parent
41bfc91124
commit
ff7a5c87e9
|
@ -1726,7 +1726,13 @@ install_libxml2() {
|
|||
$no_build && echo "Skipping installation" && return
|
||||
gzcat libxml2-$LIBXML2_VERSION.tar.gz | tar xf - || exit 1
|
||||
cd libxml2-$LIBXML2_VERSION
|
||||
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=0 $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=0 $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1
|
||||
#
|
||||
# At least on macOS 12.0.1 with Xcode 13.1, when we build
|
||||
# libxml2, the linker complains that we don't have the right
|
||||
# to link with the Python framework, so don't build with
|
||||
# Python.
|
||||
#
|
||||
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=0 $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=0 $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --without-python || exit 1
|
||||
make $MAKE_BUILD_OPTS || exit 1
|
||||
$DO_MAKE_INSTALL || exit 1
|
||||
cd ..
|
||||
|
|
Loading…
Reference in New Issue