------- Comment #2 from howarth at nitro dot med dot uc dot edu  2010-07-08 
00:25 -------
For comparison, the same compilation when -enable-build-with-cxx is not used,
shows...

/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./prev-gcc/xgcc
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./prev-gcc/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.4.0/bin/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.4.0/bin/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.4.0/lib/ -isystem
/sw/lib/gcc4.6/x86_64-apple-darwin10.4.0/include -isystem
/sw/lib/gcc4.6/x86_64-apple-darwin10.4.0/sys-include    
-I../../gcc-4.6-20100707/libcpp -I. -I../../gcc-4.6-20100707/libcpp/../include
-I../../gcc-4.6-20100707/libcpp/include -I/sw/include -g -O2 -W -Wall
-Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic
-Wno-long-long -Werror -I../../gcc-4.6-20100707/libcpp -I.
-I../../gcc-4.6-20100707/libcpp/../include
-I../../gcc-4.6-20100707/libcpp/include -I/sw/include -c -o identifiers.o -MT
identifiers.o -MMD -MP -MF .deps/identifiers.Tpo
../../gcc-4.6-20100707/libcpp/identifiers.c
yes
checking whether putc_unlocked is declared... echo "#define LOCALEDIR
\"/sw/lib/gcc4.6/share/locale\"" > localedir.new
../../gcc-4.6-20100707/libcpp/../move-if-change localedir.new localedir.h
echo timestamp > localedir.hs

It appears that for some reason -enable-build-with-cxx causes  -I/sw/include 
(as passed with --with-libiconv-prefix=/sw) to be lost in libcpp. In
particular, without -enable-build-with-cxx,  I find...

CPPFLAGS = -I/sw/include

in darwin_objdir/prev-libcpp/Makefile but with -enable-build-with-cxx, the
failing libcpp
build directory only shows...

CPPFLAGS =


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44862

Reply via email to