[Slackbuilds-users] Desmume on 64-bit - optimization flag
xgizzmo at slackbuilds.org
xgizzmo at slackbuilds.org
Thu Jan 24 01:47:10 UTC 2013
On Wednesday 23 January 2013 10:01:12 Matteo Bernardini wrote:
> 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.
>
I think all that would be needed is to add a line after the $SLKCFLAGS block.
if [ -n "$RICER_FLAGS" ]; then SLKCFLAGS=$RICER_FLAGS; fi
Then run your build RICER_FLAGS="-enable-more-fruitloops" ./some.SlackBuild
--dsomero :)
More information about the SlackBuilds-users
mailing list