Bruce Dubbs wrote: > Pierre Labastie wrote: >> When switching to gcc 4.8.0, the test of g++ was added to >> version-check.sh, but not to the list of requirements. Only GCC appears, >> which could be anything from the gcc executable to the whole compiler >> collection. Maybe this should be made clearer that g++ is needed. >> I'll commit a change to jhalfs for testing that. >> >> Actually, I have a minimal debian system for tests, and never installed >> g++, until I discovered that the first pass of gcc would fail whithout >> it. That is the reason why I looked at the hostreqs... > > I suppose we could have: > > > echo 'main(){}' > dummy.c && gcc -o dummy dummy.c > if [ -x dummy ] > then echo "gcc compilation OK"; > else echo "gcc compilation failed" > fi > rm -f dummy > > g++ -o dummy dummy.c > if [ -x dummy ] > then echo "g++ compilation OK"; > else echo "g++ compilation failed" > fi > rm -f dummy.c dummy > > It can be the same dummy.c file as for gcc.
Another thought. Is it possible to have g++ without gcc? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page