aboutsummaryrefslogtreecommitdiff
path: root/libraries/libarchive/libarchive.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libarchive/libarchive.SlackBuild')
-rw-r--r--libraries/libarchive/libarchive.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/libarchive/libarchive.SlackBuild b/libraries/libarchive/libarchive.SlackBuild
index 16fa0914feacc..9d7d3573819b5 100644
--- a/libraries/libarchive/libarchive.SlackBuild
+++ b/libraries/libarchive/libarchive.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libarchive
-VERSION=2.4.13
+VERSION=2.5.5
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -57,7 +59,9 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --disable-static
+ --disable-static \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG