You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wine-mono/wine-mono-build-static.patch

27 lines
1.5 KiB

6 years ago
--- wine-mono-4.8.1/build-winemono.sh.orig 2015-04-20 10:34:32.150114394 -0500
+++ wine-mono-4.8.1/build-winemono.sh 2015-04-20 10:33:13.699274928 -0500
@@ -73,6 +73,7 @@
8 years ago
cd "$BUILDDIR/build-cross-$ARCH"
if test 1 != $REBUILD || test ! -e Makefile; then
8 years ago
CPPFLAGS="-gdwarf-2 -gstrict-dwarf" "$SRCDIR"/mono/configure --prefix="$BUILDDIR/build-cross-$ARCH-install" --build=$BUILD --target=$MINGW --host=$MINGW --with-tls=none --disable-mcs-build --enable-win32-dllmain=yes --with-libgc-threads=win32 PKG_CONFIG=false mono_cv_clang=no || exit 1
+ sed -e 's+compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"+compiler_flags="-static"+' -i libtool
sed -e 's/-lgcc_s//' -i libtool
fi
WINEPREFIX=/dev/null make $MAKEOPTS || exit 1
6 years ago
@@ -162,6 +163,7 @@
8 years ago
cd "$BUILDDIR/build-cross-cli"
if test 1 != $REBUILD || test ! -e Makefile; then
8 years ago
"$SRCDIR"/mono/configure --prefix="$BUILDDIR/build-cross-cli-install" --with-mcs-docs=no --disable-system-aot || exit 1
+ sed -e 's+compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"+compiler_flags="-static"+' -i libtool
fi
6 years ago
# put a System.Native library somewhere monolite can find it during the build
@@ -232,6 +234,7 @@
8 years ago
# build mono-basic
cd "$SRCDIR/mono-basic"
./configure --prefix="$BUILDDIR/build-cross-cli-win32-install" || exit 1
8 years ago
+ sed -e 's+compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"+compiler_flags="-static"+' -i libtool
make $MAKEOPTS || exit 1
make install || exit 1