[Slackbuilds-users] arch question

Carlos Corbacho carlos at strangeworlds.co.uk
Sun May 11 09:16:31 UTC 2008


This is the preferred one.

> if [ "$ARCH" = "i486" ]; then
>         SLKCFLAGS="-O2 -march=i486 -mtune=i686"

This is wrong:

> if [ "$ARCH" = "i386" ]; then
>    SLKCFLAGS="-O2 -march=i386 -mtune=i686"

Current Slackware releases (i.e. 9.0 and onwards) don't support i386 as a 
target anymore (see source/d/gcc.SlackBuild for the reasons behind this). 

The above is also wrong because the last compiler that would have properly 
supported i386 on Slackware would have used -mcpu, not -mtune.

Given SBo SlackBuild's target specific Slackware releases, it doesn't make 
much sense to put in an architecture target that won't build.

-Carlos
-- 
E-Mail: carlos at strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D


More information about the Slackbuilds-users mailing list