summaryrefslogtreecommitdiff
path: root/libraries/libatomic_ops
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libatomic_ops')
-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