From f3b132187fc734cbb3705b405361c8bad9a72582 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 25 May 2019 12:42:38 -0400 Subject: [PATCH] [mingw] Some more tweaks It now survives ./config.status --recheck as well. https://github.com/harfbuzz/harfbuzz/issues/1728 --- mingw-configure.sh | 37 ++++++++++++++++++------------------- mingw32.sh | 2 +- mingw64.sh | 2 +- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/mingw-configure.sh b/mingw-configure.sh index 0c3ec3489..3281ce382 100755 --- a/mingw-configure.sh +++ b/mingw-configure.sh @@ -8,22 +8,21 @@ esac target=$1-w64-mingw32 shift -unset CC -unset CXX -unset CPP -unset LD -unset LDFLAGS -unset CFLAGS -unset CXXFLAGS -unset PKG_CONFIG_PATH - -# Removed -static from the following -export CFLAGS="-static-libgcc" -export CXXFLAGS="-static-libgcc -static-libstdc++" -export CPPFLAGS="-I$HOME/.local/$target/include" -export LDFLAGS=-L$HOME/.local/$target/lib -export PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig:/usr/$target/sys-root/mingw/lib/pkgconfig/ -export PKG_CONFIG_PATH=$HOME/.local/$target/share/pkgconfig:/usr/$target/sys-root/mingw/share/pkgconfig/ -export PATH=$HOME/.local/$target/bin:/usr/$target/sys-root/mingw/bin:/usr/$target/bin:$PATH - -../configure --build=`../config.guess` --host=$target --prefix=$HOME/.local/$target --with-uniscribe --without-icu "$@" +exec "$(dirname "$0")"/configure \ + --build=`../config.guess` \ + --host=$target \ + --prefix=$HOME/.local/$target \ + CC= \ + CXX= \ + CPP= \ + LD= \ + CFLAGS="-static-libgcc" \ + CXXFLAGS="-static-libgcc -static-libstdc++" \ + CPPFLAGS="-I$HOME/.local/$target/include" \ + LDFLAGS=-L$HOME/.local/$target/lib \ + PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig:/usr/$target/sys-root/mingw/lib/pkgconfig/ \ + PKG_CONFIG_PATH=$HOME/.local/$target/share/pkgconfig:/usr/$target/sys-root/mingw/share/pkgconfig/ \ + PATH=$HOME/.local/$target/bin:/usr/$target/sys-root/mingw/bin:/usr/$target/bin:$PATH \ + --without-icu \ + --with-uniscribe \ + "$@" diff --git a/mingw32.sh b/mingw32.sh index b673678cd..77edffa98 100755 --- a/mingw32.sh +++ b/mingw32.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec "`dirname "$0"`/mingw-configure.sh" i686 "$@" +exec "$(dirname "$0")"/mingw-configure.sh i686 "$@" diff --git a/mingw64.sh b/mingw64.sh index 5bc46e569..28724a48e 100755 --- a/mingw64.sh +++ b/mingw64.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec "`dirname "$0"`/mingw-configure.sh" x86_64 "$@" +exec "$(dirname "$0")"/mingw-configure.sh x86_64 "$@"