2013/1/23 Kyle Guinn <ely...@gmail.com> > SLKCFLAGS="-O2" > LIBDIRSUFFIX="" > if [ "$ARCH" = "x86_64" -o \( "$ARCH" = "native" -a "$(uname -m)" = > "x86_64" \) ]; then > SLKCFLAGS="$SLKCFLAGS -fPIC" > LIBDIRSUFFIX="64" > fi > if [ "$ARCH" = "native" ]; then > SLKCFLAGS="$SLKCFLAGS -march=native" > elif [ "$ARCH" = "i486" ]; then > SLKCFLAGS="$SLKCFLAGS -march=i486 -mtune=i686" > elif [ "$ARCH" = "i686" ]; then > SLKCFLAGS="$SLKCFLAGS -march=i686 -mtune=i686" > fi >
I played a little with it SLKCFLAGS=${SLKCFLAGS:--O2} LIBDIRSUFFIX="" [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "native" -a "$(uname -m)" = "x86_64" ] \ && SLKCFLAGS="$SLKCFLAGS -fPIC" ; LIBDIRSUFFIX="64" [ "$ARCH" = "i486" ] || [ "$ARCH" = "native" ] \ && SLKCFLAGS="$SLKCFLAGS -march=$ARCH" [ "$ARCH" = "i686" ] && SLKCFLAGS="$SLKCFLAGS -march=$ARCH -mtune=$ARCH" Matteo
_______________________________________________ SlackBuilds-users mailing list SlackBuilds-users@slackbuilds.org http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ - http://slackbuilds.org/faq/