[SM-Commit] GIT changes to master archspecs by sandalle (8f29788d595401c5574782132fd3026ef622aaf4)

Jaka Kranjc smgl at lynxlynx.info
Mon Mar 16 04:50:49 EDT 2009


On Monday 16 of March 2009 08:59:17 sandalle wrote:
> +if use_gcc 4.3. ; then
> +  CFLAGS="-march=core2 -m32"
> +elif use_gcc 3.3. ; then
> +  CFLAGS="-march=nocona -m32"
> +elif use_gcc2 ; then
> +  CFLAGS="-march=i686"
> +else
> +  CFLAGS="-march=nocona -m32"
> +fi
As soon as gcc 4.4 is out, this will be broken. Since the + support isn't 
readily available yet, I suggest something like this:

if use_gcc 3.3. || use_gcc 3.4. || use_gcc 4.0 || use_gcc 4.1 || use_gcc 4.2; 
then
  CFLAGS="-march=nocona -m32"
elif use_gcc2 ; then
  CFLAGS="-march=i686"
else
  CFLAGS="-march=core2 -m32"
fi



-- 
We cannot command nature except by obeying her.  --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ibiblio.org/pipermail/sm-commit/attachments/20090316/9175b7e2/attachment.bin 


More information about the SM-Commit mailing list