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