summaryrefslogtreecommitdiff
path: root/libraries/freealut
diff options
context:
space:
mode:
authorFrazen <slackbuilds@schoepfer.info>2022-02-10 08:40:16 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-10 08:40:16 +0700
commitcedf75d97a6a34270dfade3ee5b4e62b286bf1bb (patch)
tree3d6b214610c8cf7d7e738522707f986306596bb0 /libraries/freealut
parent6bfb1d7e46a542830f2e929c93cdffcca101cb67 (diff)
downloadslackbuilds-cedf75d97a6a34270dfade3ee5b4e62b286bf1bb.tar.gz
libraries/freealut: Remove .la files.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/freealut')
-rw-r--r--libraries/freealut/freealut.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/libraries/freealut/freealut.SlackBuild b/libraries/freealut/freealut.SlackBuild
index 9301bfca8e..75cadbb60a 100644
--- a/libraries/freealut/freealut.SlackBuild
+++ b/libraries/freealut/freealut.SlackBuild
@@ -32,7 +32,7 @@ PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -50,8 +50,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -89,6 +89,9 @@ CFLAGS="$SLKCFLAGS" \
make || exit 1
make install DESTDIR=$PKG || exit 1
+# Don't ship .la files:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true