Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304417 - bootstrap-prefix.sh does not honor env CFLAGS
Summary: bootstrap-prefix.sh does not honor env CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 22:07 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2010-02-12 21:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-02-10 22:07:30 UTC
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?
Comment 1 Michael Haubenwallner (RETIRED) gentoo-dev 2010-02-11 08:57:45 UTC
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...
Comment 2 Fabian Groffen gentoo-dev 2010-02-11 10:18:17 UTC
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.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-02-12 21:10:08 UTC
Talked in irc, and settled on this: http://overlays.gentoo.org/proj/alt/changeset/57019

Thanks.