aboutsummaryrefslogtreecommitdiff
path: root/libraries/libupnp
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-29 01:09:45 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-29 01:09:57 +0700
commitcad4a4073b0a1cb7551f6a480dd39311e98bf3f6 (patch)
tree3ead8183e88fa3f96dae1007c4a6faed553a3c4e /libraries/libupnp
parent23dd4f26489029eb749e69d94c1b4a9ef273d712 (diff)
libraries/libupnp: Fix build on 32 bit.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org> Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libupnp')
-rw-r--r--libraries/libupnp/libupnp.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/libupnp/libupnp.SlackBuild b/libraries/libupnp/libupnp.SlackBuild
index c0fe163826f2..db6a35e3fc16 100644
--- a/libraries/libupnp/libupnp.SlackBuild
+++ b/libraries/libupnp/libupnp.SlackBuild
@@ -57,6 +57,9 @@ else
LIBDIRSUFFIX=""
fi
+# largefile support must be disabled on 32bit
+LARGEFILE="" ; [ "$ARCH" = "i686" ] || [ "$ARCH" = "i586" ] && LARGEFILE="--disable-largefile"
+
set -e
rm -rf $PKG
@@ -83,6 +86,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-shared=yes \
--enable-static=$ENABLESTATIC \
--enable-ipv6=$ENABLEIPV6 \
+ $LARGEFILE \
--build=$ARCH-slackware-linux
make