From f96a17c8ee75242b86532d3c760ad0b54604cd04 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 9 Feb 2019 18:26:54 +0000 Subject: wine: allow the build to complete on 32bit Slackware 14.2 --- wine/build/wine.SlackBuild | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wine/build/wine.SlackBuild') 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 -- cgit v1.2.3-80-g2a13