This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lambacck
Recipients lambacck, loewis, marienz, nyogtha, rpetrov, tarek, vaxhacker
Date 2009-10-07.16:15:48
SpamBayes Score 1.4496021e-09
Marked as misclassified No
Message-id <1254932150.44.0.929384586045.issue969718@psf.upfronthosting.co.za>
In-reply-to
Content
I am running into a problem related to this. I am attempting to cross
compile extensions but Fedora includes -march in the OPT variable. Since
there is no way to exclude the OPT values the build fails.

It seems that forcing OPT to stay the same is a disservice generally
speaking since as Marien said you potentially get extra conflicting
flags (-O seems like a stand-out since that could mess with gdb).

2.6 and 3.1 say:
        if 'CFLAGS' in os.environ:
            cflags = opt + ' ' + os.environ['CFLAGS']
            ldshared = ldshared + ' ' + os.environ['CFLAGS']

There is no ability to override opt. I'd be willing to put together a
patch to allow opt to be overridden by an environment variable if I
could get some support for this from a core maintainer.

I am also open to other suggestions about how to get around this. I
potentially have time to put into fixing this (or the more general cross
compile issue).
History
Date User Action Args
2009-10-07 16:15:50lambaccksetrecipients: + lambacck, loewis, vaxhacker, nyogtha, marienz, tarek, rpetrov
2009-10-07 16:15:50lambaccksetmessageid: <1254932150.44.0.929384586045.issue969718@psf.upfronthosting.co.za>
2009-10-07 16:15:48lambaccklinkissue969718 messages
2009-10-07 16:15:48lambacckcreate