--disable-libiberty does not work (as I expect it)

Ian Lance Taylor iant@google.com
Fri Apr 29 22:54:00 GMT 2011


Steffen Dettmer <steffen.dettmer@googlemail.com> writes:

> If I understand correctly, it attempts to builb libiberty for my
> target platform? I don't need it.

It is built because libstdc++ might use some things defined in
libiberty.  If you are building for C only then you don't need it, and
it shouldn't be built.  If you are building for C++ also then you may
need it and gcc will try to build it.

> When I give `--disable-libiberty', I get an error earlier (that
> is, there is no rule to make target ../libiberty/libiberty.a or
> similar).

Right, --disable-libiberty controls the host libiberty, not the target
one.

Ian



More information about the Gcc-help mailing list