[Slackbuilds-users] Desmume on 64-bit - optimization flag

Matteo Bernardini matteo.bernardini at gmail.com
Wed Jan 23 15:01:12 UTC 2013


Hi J,

I tried to adapt the line to take in account Eric's advices

SLKCFLAGS=${SLKCFLAGS:--O2}
LIBDIRSUFFIX=""
[ "$(uname -m)" = "x86_64" ] && [ ! "$(echo $PATH | grep ^\/usr\/bin\/32)"
] && SLKCFLAGS="$SLKCFLAGS -fPIC" LIBDIRSUFFIX="64"
[ "$ARCH" = "i486" ] || [ "$ARCH" = "native" ] && SLKCFLAGS="$SLKCFLAGS
-march=$ARCH"
[ "$ARCH" = "i486" ] || [ "$ARCH" = "i686" ] && SLKCFLAGS="$SLKCFLAGS
-mtune=i686"

Matteo

P.S. just to be clear, this is for fun only: ATM there's no plans to change
anything regarding custom CFLAGS/ARCH detection.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20130123/1b5cde91/attachment.html>


More information about the SlackBuilds-users mailing list