From 49103cf12722b07c8c3c1959fc03b79714af7a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 30 Sep 2018 22:50:46 +0300 Subject: [PATCH] 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=-w64-mingw32-strip to install though. --- build-mingw-w64-widl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-mingw-w64-widl.sh b/build-mingw-w64-widl.sh index 04fb11f..7798927 100755 --- a/build-mingw-w64-widl.sh +++ b/build-mingw-w64-widl.sh @@ -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 ..