From 0b25ff4c57336195444daf62ca4eaa9cef6a82bb Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 24 Nov 2019 18:07:27 +0700 Subject: [PATCH] libtimezonemap: Add ARCH detection. Signed-off-by: Willy Sudiarto Raharjo --- libtimezonemap/libtimezonemap.SlackBuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libtimezonemap/libtimezonemap.SlackBuild b/libtimezonemap/libtimezonemap.SlackBuild index 02985e1..0b4c2d9 100644 --- a/libtimezonemap/libtimezonemap.SlackBuild +++ b/libtimezonemap/libtimezonemap.SlackBuild @@ -42,6 +42,20 @@ TMP=${TMP:-/tmp/csb} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG