At 23:57 12/30/2002 -0500, Mark Post wrote:
Still, it doesn't answer the question as to why the gcc and binutils
source packages are building the same library with different contents.
Nobody ever said the FSF folks were Software Engineers, just a hackers with
a Purpose :-)

From the libiberty doc
(http://gcc.gnu.org/onlinedocs/libiberty/Using.html#Using):

        "To date, libiberty is generally not installed on its own. It has
evolved over years
        but does not have its own version number nor release schedule.

        Possibly the easiest way to use libiberty in your projects is to
drop the libiberty
        code into your project's sources, and to build the library along
with your own
        sources; the library would then be linked in at the end. This
prevents any possible
        version mismatches with other copies of libiberty elsewhere on the
system."

Hey, guess what!  This form of code reuse was supposed to *prevent* your
problem, not *cause* it!  OK, it continues:

        "Passing --enable-install-libiberty to the configure script when
building libiberty
        causes the header files and archive library to be installed when
make install is
        run. This option also takes an (optional) argument to specify the
installation
        location, in the same manner as --prefix.

        For your own projects, an approach which offers stability and
flexibility is to
        include libiberty with your code, but allow the end user to
optionally choose
        to use a previously-installed version instead. In this way the
user may choose
        (for example) to install libiberty as part of GCC, and use that
version for all
        software built with that compiler. (This approach has proven
useful with software
        using the GNU readline library.) "

Ross Patterson

Reply via email to