Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
#ARCH=`uname -m`
if [ -z "$ARCH" ]; then
#case "$( uname -m )" in
case "i686" in
i686) ARCH=i686 ;;
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
echo "$ARCH"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
echo "$ARCH"
echo "$SLKCFLAGS"
echo "done."
i686
i686
-O2 -march=i686 -mtune=i686
done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment