Merge branch 'dont-mess-with-pkg-config-libdir'
Don't change PKG_CONFIG_LIBDIR in configure, this is better done by its caller. See #22915.
This commit is contained in:
commit
7904c11f22
3 changed files with 4 additions and 30 deletions
8
.github/workflows/ci_mac.yml
vendored
8
.github/workflows/ci_mac.yml
vendored
|
|
@ -93,13 +93,13 @@ jobs:
|
|||
runner: macos-11
|
||||
arch: x86_64
|
||||
configure_flags: --with-osx_iphone --enable-monolithic --disable-sys-libs --host=i686-apple-darwin_sim --build=x86_64-apple-darwin17.7.0
|
||||
configure_env: PKG_CONFIG_LIBDIR=/dev/null
|
||||
xcode_sdk: iphonesimulator
|
||||
skip_samples: true
|
||||
skip_testing: true
|
||||
allow_warnings: true
|
||||
|
||||
env:
|
||||
wxCONFIGURE_FLAGS: --disable-sys-libs --without-liblzma ${{ matrix.configure_flags }} --prefix=${{ github.workspace }}/localbin_${{ matrix.arch }}
|
||||
wxUSE_ASAN: ${{ matrix.use_asan && 1 || 0 }}
|
||||
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
|
||||
NSUnbufferedIO: YES
|
||||
|
|
@ -160,7 +160,7 @@ jobs:
|
|||
|
||||
- name: Configuring
|
||||
run: |
|
||||
wxCONFIGURE_OPTIONS="--disable-optimise $wxCONFIGURE_FLAGS"
|
||||
wxCONFIGURE_OPTIONS="--disable-optimise --disable-sys-libs --without-liblzma ${{ matrix.configure_flags }} --prefix=${{ github.workspace }}/localbin_${{ matrix.arch }}"
|
||||
|
||||
if [ -n "${{ matrix.xcode_sdk }}" ]; then
|
||||
sdk_path=`xcrun --sdk ${{ matrix.xcode_sdk }} --show-sdk-path`
|
||||
|
|
@ -172,9 +172,9 @@ jobs:
|
|||
wxASAN_CXXFLAGS=$wxASAN_CFLAGS
|
||||
wxASAN_LDFLAGS="-fsanitize=address"
|
||||
|
||||
./configure $wxCONFIGURE_OPTIONS --enable-debug "CFLAGS=$wxASAN_CFLAGS" "CXXFLAGS=$wxASAN_CXXFLAGS" "LDFLAGS=$wxASAN_LDFLAGS" || rc=$?
|
||||
${{ matrix.configure_env }} ./configure $wxCONFIGURE_OPTIONS --enable-debug "CFLAGS=$wxASAN_CFLAGS" "CXXFLAGS=$wxASAN_CXXFLAGS" "LDFLAGS=$wxASAN_LDFLAGS" || rc=$?
|
||||
else
|
||||
./configure $wxCONFIGURE_OPTIONS --disable-debug_info || rc=$?
|
||||
${{ matrix.configure_env }} ./configure $wxCONFIGURE_OPTIONS --disable-debug_info || rc=$?
|
||||
fi
|
||||
if [ -n "$rc" ]; then
|
||||
echo '*** Configuring failed, contents of config.log follows: ***'
|
||||
|
|
|
|||
9
configure
vendored
9
configure
vendored
|
|
@ -25188,15 +25188,6 @@ $as_echo "no" >&6; }
|
|||
|
||||
fi
|
||||
|
||||
if test "$build" != "$host"; then
|
||||
|
||||
|
||||
if test -z "$PKG_CONFIG_LIBDIR"; then
|
||||
PKG_CONFIG_LIBDIR=/dev/null
|
||||
export PKG_CONFIG_LIBDIR
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "$wxUSE_REGEX" != "no"; then
|
||||
|
|
|
|||
17
configure.in
17
configure.in
|
|
@ -2106,23 +2106,6 @@ fi
|
|||
dnl Find pkg-config outside of any conditional. Done before any PKG_* call.
|
||||
PKG_PROG_PKG_CONFIG
|
||||
|
||||
dnl When cross-compiling, don't use .pc files on the build system, they are at
|
||||
dnl best useless and can be harmful (e.g. they may define options inappropriate
|
||||
dnl for the cross-build, resulting in the failure of all the subsequent tests).
|
||||
if test "$build" != "$host"; then
|
||||
dnl pkg.m4 forbids the use of PKG_XXX, so undo it here to avoid autoconf
|
||||
dnl errors.
|
||||
m4_pattern_allow([PKG_CONFIG_LIBDIR])
|
||||
|
||||
dnl If pkg-config libdir is already defined, we suppose that they know what
|
||||
dnl they're doing and leave it alone, but if not, set it to a path in which
|
||||
dnl no .pc files will be found.
|
||||
if test -z "$PKG_CONFIG_LIBDIR"; then
|
||||
PKG_CONFIG_LIBDIR=/dev/null
|
||||
export PKG_CONFIG_LIBDIR
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Optional libraries
|
||||
dnl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue