[Slackbuilds-users] Desmume on 64-bit - optimization flag
Tim Dickson
dickson.tim at googlemail.com
Wed Jan 23 09:51:30 UTC 2013
On 23/01/2013 07:21, Matteo Bernardini wrote:
> I lied (previous versions are fails)
>
> SLKCFLAGS=${SLKCFLAGS:--O2}
> LIBDIRSUFFIX=""
> [ "$(uname -m)" = "x86_64" ] && SLKCFLAGS="$SLKCFLAGS -fPIC"
> LIBDIRSUFFIX="64"
> [ "$ARCH" = "i486" ] || [ "$ARCH" = "native" ] &&
> SLKCFLAGS="$SLKCFLAGS -march=$ARCH"
> [ "$ARCH" = "i486" ] || [ "$ARCH" = "i686" ] && SLKCFLAGS="$SLKCFLAGS
> -mtune=i686"
>
> Matteo
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
i think you would have difficulties creating 32bit packages from 64bit
(multilib) slackware, as uname -m would set libdirsuffix to 64 which is
not what you want for 32bit package. you might have to add a && ![
"$ARCH" = "i486" ] or something similar after the first part of the test.
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20130123/4ba73be5/attachment.html>
More information about the SlackBuilds-users
mailing list