We ran into a situation today where bootstrap-prefix.sh set CFLAGS for us on solaris. Well, that works fine for gcc, but not cc. The problem with the situation was that there was no way for the env to override it. Thoughts?
This sounds like you don't have gcc but cc only on your target machine, right? Well, this is a situation that prefix-launcher is intended for and (svn trunk, not the released one) should be able to help...
hmmm, what the bootstrap script does is add -I... to CFLAGS and -L... -R... to LDFLAGS, this should be portable, except for the -m64/32 perhaps, but that's set in CC and CXX, not in CFLAGS. Do we need more logic to cope with the Sun Studio compiler? I guess we can detect it.
Talked in irc, and settled on this: http://overlays.gentoo.org/proj/alt/changeset/57019 Thanks.