CFLAGS are not taken into account properly

skip at pobox.com skip at pobox.com
Wed May 17 07:34:28 EDT 2006


    Toon> To configure python on a Solaris 9 box with sunstudio11 installed
    Toon> and to compile it in 64bit, I execute following:

    Toon> <code>
    Toon> export CC=cc
    Toon> export CFLAGS="-xarch=v9"
    Toon> export CXX=CC
    Toon> export CXXFLAGS="-xarch=v9"
    Toon> export F77=f77
    Toon> export FFLAGS="-xarch=v9"
    Toon> export LDFLAGS="-xarch=v9"
    Toon> ./configure
    Toon> </code>

    Toon> When doing 'make' afterwards, the '-xarch=v9' option is not on the
    Toon> command-line however? Should'nt the CFLAGS be propagated to the
    Toon> Makefile that is generated by configure? Or is there any other way
    Toon> to do this?

I agree, the Python configure/Makefile combination doesn't conform very well
to current GNU style in this regard.  Try setting EXTRA_CFLAGS instead of
CFLAGS.

Skip



More information about the Python-list mailing list