summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-12 17:41:01 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:41:01 +0200
commit09406f274ebf1372cba7e91038771e759164c6c1 (patch)
treef5831c6ffe4746bc3bb32f591d88ab4dad7bbc2e
parentaa6e3d0d1e3ff4a6c00ecd0917fd47830ebcbfe1 (diff)
downloadslackbuilds-09406f274ebf1372cba7e91038771e759164c6c1.tar.gz
libraries/libatomic_ops: Updated for version 1.2
-rw-r--r--libraries/libatomic_ops/libatomic_ops.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/libraries/libatomic_ops/libatomic_ops.SlackBuild b/libraries/libatomic_ops/libatomic_ops.SlackBuild
index a7b57158bc..b0eb84f00a 100644
--- a/libraries/libatomic_ops/libatomic_ops.SlackBuild
+++ b/libraries/libatomic_ops/libatomic_ops.SlackBuild
@@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -56,10 +59,10 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
- --build=$ARCH-slackware-linux \
- --host=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG