[Slackbuilds-users] Desmume on 64-bit - optimization flag
j at dawnrazor.net
Thu Jan 24 06:14:14 UTC 2013
On 2013-01-23 09:01, Matteo Bernardini wrote:
> Hi J,
> I tried to adapt the line to take in account Eric's advices
> [ "$(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
oh, I like this idea a lot - a huge usability win to not have to edit
the .SlackBuild for such cases. of course, since SBo's official stance
is "no support for multilib", I guess there's not much chance of this
being acceptable... but it would be nice. also, probably want grep -q :)
On 2013-01-23 21:16, Kyle Guinn wrote:
> On 1/23/13, xgizzmo at slackbuilds.org <xgizzmo at slackbuilds.org> wrote:
> This topic has me curious. Can anyone explain to me why we add -fPIC
> for x86_64, or why we don't add it to the others?
the over-simplified answer is that it makes dynamic linking on x86_64
possible, and that on x86 dynamic linking Just Works. if you'd like a
more technical understanding, there are plenty of these available
online, just google for something like "fpic x86_64" or "fpic amd64" or
More information about the SlackBuilds-users