Strip the built widl by passing -Wl,-s to the linker, instead of INSTALL="install -s"

When stripping via "install -s", install invokes the system's
strip tool, which might not support the cross target that we are
building for. This could also be handled by passing
--strip-program=<arch>-w64-mingw32-strip to install though.
This commit is contained in:
Martin Storsjö committed 2018-10-02 21:34:54 +03:00
1 parent fb4862b0d6
commit 49103cf127
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ cd mingw-w64/mingw-w64-tools/widl
for arch in $ARCHS; do
mkdir -p build-$CROSS_NAME$arch
cd build-$CROSS_NAME$arch
../configure --prefix=$PREFIX --target=$arch-w64-mingw32 $CONFIGFLAGS INSTALL="install -s"
../configure --prefix=$PREFIX --target=$arch-w64-mingw32 $CONFIGFLAGS LDFLAGS="-Wl,-s"
make -j$CORES
make install
cd ..