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:
1 parent
fb4862b0d6
commit
49103cf127
1 file changed
+1
-1
@@ -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 ..
|
||||
|
||||
Reference in new issue
Block a user