summaryrefslogtreecommitdiffstats
path: root/wine/build
diff options
context:
space:
mode:
Diffstat (limited to 'wine/build')
-rwxr-xr-xwine/build/wine.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/wine/build/wine.SlackBuild b/wine/build/wine.SlackBuild
index f5190b9d..902770d9 100755
--- a/wine/build/wine.SlackBuild
+++ b/wine/build/wine.SlackBuild
@@ -362,6 +362,12 @@ function wineconfigure ()
# Required because of the wine-staging as well as the direct3d9 patches:
autoreconf -vif 2>&1 | tee $OUTPUT/autoreconf-${PRGNAM}.log
+# Remove '-fPIC' when compiling on 32bit OS, or else the build will hang
+# for older compilers (thanks to Dave Woodfall of SBo):
+if [ "$ARCH" != "x86_64" -a $(gcc -dumpversion | cut -d'.' -f1) -lt 8 ]; then
+ sed -i -e "s/-fPIC//g" configure
+fi
+
if [ "$ARCH" = "x86_64" -a "$DO_WINE64" = "yes" ]; then
# First, wine64:
mkdir wine64