On Oct 21, 2009, at 5:29 AM, Max Horn wrote:


Am 21.10.2009 um 01:44 schrieb Hanspeter Niederstrasser:

Max Horn wrote:
FYI, I filed a bug report on the SDL bug tracker about this issue,
feel free to add yourself to the CC list of that bug report if you
are  interested in the resolution or want to contribute to solving
it: <http://bugzilla.libsdl.org/show_bug.cgi?id=864

I did a quick check on this: changing the info file to "SetCC:
gcc-4.2" (vs the currently set gcc-4.0 in the info file) fixes the
10.5/x86_64 build and doesn't affect the 10.5/32bit build.

Not setting CC just uses gcc, which points to gcc-4.2, so that
doesn't work either.

I am not sure whether I understand this last remark: You say not
setting CC uses gcc, which is gcc-4.2 -- above you said gcc-4.2 works,
now you say it doesn't? I am confused :).

Anyway, I dropped the SetCC field (there is no need for it as the
package is only meant for 10.4 upwards, which all use at least GCC
4.0). I'd appreciate if you could tell me whether the issue persists
there.

There is apparently a bug in gcc-4.0 which is being triggered by sdl on x86_64. The bug is fixed in gcc-4.2. This is fine on 10.6 since gcc-4.2 is the default, but if you want it to work on 10.5/x86_64 you need to explicitly SetCC: gcc-4.2. The complication is that gcc-4.2 is only available starting with, I think, Xcode 3.1 and early versions of 10.5 came with Xcode 3.0. If someone never updated their Xcode, they wouldn't have gcc-4.2. Since 10.5/x86_64 isn't really officially supported by Fink, I'd say BuildDepend: (%m = x86_64) gcc4.2 and then have
if [ "%m" == "x86_64" ]; then
  export CC=gcc-4.2
fi
in CompileScript. If someone really wants to run 10.5/x86_64 they'll have to make sure their Xcode is up to date.

Daniel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to