aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArn0 <yth@ythogtha.org>2024-01-18 16:04:55 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-01-19 09:51:03 +0700
commit929e8c26c04f266c63393237e5470a68c3808820 (patch)
tree14dbc55ae5d613f2300eebaa93369e98faeca7b1
parent614ba642d63fe07707ef42632f4e09ad4ccf6848 (diff)
libraries/libjodycode: Added aarch64 flags
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/libjodycode/libjodycode.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/libjodycode/libjodycode.SlackBuild b/libraries/libjodycode/libjodycode.SlackBuild
index f79689dad1d3..572a67160cdd 100644
--- a/libraries/libjodycode/libjodycode.SlackBuild
+++ b/libraries/libjodycode/libjodycode.SlackBuild
@@ -57,6 +57,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -88,6 +91,7 @@ make PREFIX=/usr CFLAGS_EXTRA="$SLKCFLAGS"
mkdir -p $PKG/usr/include
make install DESTDIR=$PKG
+rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.a
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true