Try CXXFLAGS instead of CPPFLAGS.

Earnie.

"Dr. David Kirkby" wrote:
> 
> I've got a test is a configure.in which sets CPPFLAGS to what I want, by calling
> an external programme wx-config.
> 
> CPPFLAGS=$CPPFLAGS `wx-config --cflags`
> 
> That works, and if I echo $CPPFLAGS, its value is as expected.
> 
> However, when a C++ programme (extension .cpp) is compiled using g++, it uses
> the CFLAGS, not the CPPFLAGS. So no matter what I put in CPPFLAGS, it never
> propagates to the makefile.
> 
> Am I supposed to do anything special in the Makefile.am? I just have this:
> 
> bin_PROGRAMS = checksum
> checksum_SOURCES = checksum.cpp
> EXTRA_DIST = README
> 
> --
> Dr. David Kirkby PhD,
> email: [EMAIL PROTECTED]
> web page: http://www.david-kirkby.co.uk
> Amateur radio callsign: G8WRB

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to