--- slang1.SlackBuild 2006-08-01 02:10:21.000000000 -0400 +++ slang1.SlackBuild.s390x 2006-09-16 23:26:03.000000000 -0400 @@ -13,7 +13,7 @@ SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "s390" ]; then +elif [ "$ARCH" = "s390x" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" @@ -31,6 +31,7 @@ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib64 \ --includedir=/usr/include/slang1 \ --disable-static \ $ARCH-slackware-linux @@ -39,13 +40,13 @@ make install DESTDIR=$PKG make -j4 elf || exit 1 make install-elf DESTDIR=$PKG -chmod 755 $PKG/usr/lib/libslang.so.$VERSION +chmod 755 $PKG/usr/lib64/libslang.so.$VERSION # We are letting S-Lang version 2 take over as the new default: -mv $PKG/usr/lib/libslang.so $PKG/usr/lib/libslang1.so +mv $PKG/usr/lib64/libslang.so $PKG/usr/lib64/libslang1.so # --disable-static doesn't always work, but this is guaranteed: -rm -f $PKG/usr/lib/*.a +rm -f $PKG/usr/lib64/*.a ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null