[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#746688: the libgnatprj build uses system c++ header files, should use the ones from the build



Package: gnat-4.9

The libgnatprj build uses an ugly combination of the just built g++ together
with system c++ header files.  This may work for a native build where the
dependency is fulfilled by the g++-4.9 build dependency, but it complicates
cross builds and builds from the same source.  Please use the header files from
the just built libstdc++.

It looks like this can be done by respecting CC, CXX, CFLAGS and CXXFLAGS set by
the toplevel Makefile.

The toplevel Makefile.def also seems to missing a dependency on libstdc++-v3 for
libgnatproj.

../gcc/xgcc -B../gcc/ -c -fPIC -g -O2 -gnatn -nostdinc
-I../gcc/ada/rts-shared-zcx -I../libgnatvsn sdefault.adb -o obj-shared/sdefault.o
../gcc/xg++ -B../gcc/ -c -fPIC -g -O2 -DHAVE_CONFIG_H -pedantic \
           -I../../src/libgnatprj/../gcc -I../../src/libgnatprj/../include
-I../../src/libgnatprj/../libcpp/include -I../gcc \
           ../../src/libgnatprj/../gcc/common/common-targhooks.c -o
obj-shared/common-targhooks.o
In file included from ../../src/libgnatprj/../gcc/common/common-targhooks.c:21:0:
../../src/libgnatprj/../gcc/system.h:205:20: fatal error: cstring: No such file
or directory
 # include <cstring>
                    ^
compilation terminated.
make[4]: *** [obj-shared/common-targhooks.o] Error 1


Reply to: