Hi Vladimir, I try what you suggest, including
using gcc : : gcc ;
as the first line in my Jamroot but I got this error:
error: at /usr/local/src/BOOST-BUILD/boost-build2/boost-build/build/project.jam:828
error: duplicate initialization of gcc with the following parameters:
error: version = 4.3.3
error: previous initialization at /usr/local/src/BOOST-BUILD/boost-build2/boost-build/build/project.jam:828
This is the bjam I'm using
bjam --version
Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.16
any suggestion?
best regards,
Jorge
Hi Jorge,On Wednesday, October 19, 2011 11:10:28 Jorge Pérez wrote:
> When I compile a program which is only C (not C++) the result is an
> executable depending on libstdc++ this is because the linker is invoked as
> g++. Is it possible to invoke gcc as the linker? or there is a way to
> avoid this dependency on libstdc++ for program written only in C?
you can try to configure compiler like:
using gcc : : gcc ;
to specifically use gcc all the time. This will affect all compilations. It is
certainly possible to adjust the code to implement better solution, but it
is not the case now.
HTH,
--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2