[Slackbuilds-users] arch question
Andrew Conway
ajc at countingthoughts.com
Sun May 11 09:07:00 UTC 2008
Hi
I'm just starting out making slackbuild scripts and am spending some
time reading and understanding the docs, but please excuse me if this is
a stupid or already-asked question on this list.
Originally posted here:
http://www.linuxquestions.org/questions/slackware-14/slackbuild-guidance-needed-641318/
I've succeeded in making a slackbuild for kphotoalbum but have come
across conflicting advice.
http://www.slackbuilds.com/guidelines/ tells me to include these lines:
Code:
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
but the tutorial http://www.slackwiki.org/Writing_A_SlackBuild_Script says
Code:
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
Which is preferred?
Andrew
More information about the Slackbuilds-users
mailing list