Skip to contentSkip to conversation

altering cflags for autotools

DISCUSSION Tobias Pflug 2 participants 3 messages Nov 15, 2007 – Nov 17, 2007

lore
Share & tools
lore
#0 lore raw

hi..

today i've been trying to package mod_python but had some difficulties because ${STAGING_INCDIR} was not included in the path thus mod_include.h (staged from the apache2 package) could not be found -> can't compile mod_python.

Changing CFLAGS or EXTRA_CFLAGS has no effect. Looking at the autotools class that is no surprise because it doesn't seem to be read anywhere. How can I fix this? Do I have to patch the configure.in file ?

Which leads me to my next, slightly related question. When in a devshell session, shouldn't STAGING_INCDIR be set as environment variable ?

regards,
Tobi

#1 lore raw
Quoted 10 lines · Tobias Pflug

hi..

today i've been trying to package mod_python but had some difficulties because ${STAGING_INCDIR} was not included in the path thus mod_include.h (staged from the apache2 package) could not be found -> can't compile mod_python.

Changing CFLAGS or EXTRA_CFLAGS has no effect. Looking at the autotools class that is no surprise because it doesn't seem to be read anywhere. How can I fix this? Do I have to patch the configure.in file ?

It doesn't need to be read anywhere. It's exported, and autoconf uses the environment CFLAGS by default.

Signature · 3 lines
Chris Larson - clarson at kergoth dot com
Dedicated Engineer - MontaVista - clarson at mvista dot com
Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus
#2 lore raw
Quoted 8 lines · Chris Larson
Quoted 7 lines · Tobias Pflug

hi..

today i've been trying to package mod_python but had some difficulties because ${STAGING_INCDIR} was not included in the path thus mod_include.h (staged from the apache2 package) could not be found -> can't compile mod_python.

Quoted 6 lines
Quoted 3 lines

Changing CFLAGS or EXTRA_CFLAGS has no effect. Looking at the autotools class that is no surprise because it doesn't seem to be read anywhere. How can I fix this? Do I have to patch the configure.in file ?

It doesn't need to be read anywhere. It's exported, and autoconf uses the environment CFLAGS by default.

Alright.. I was being silly. The problem is that I need to overwrite the values used by apxs which is used for building ..

Still, thanks for your clarification