2013/1/23 Matteo Bernardini <matteo.bernard...@gmail.com>

> 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
>

still playing, this is what I came up with at the end

SLKCFLAGS=${SLKCFLAGS:--O2}
LIBDIRSUFFIX=""
[ "$(uname -m)" = "x86_64" ] && SLKCFLAGS="$SLKCFLAGS -fPIC"
LIBDIRSUFFIX="64"
[ "$ARCH" = "i?86" ] || [ "$ARCH" = "native" ] && SLKCFLAGS="$SLKCFLAGS
-march=$ARCH"
[ "$ARCH" = "i686" ] && SLKCFLAGS="$SLKCFLAGS -mtune=$ARCH"
_______________________________________________
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/

Reply via email to