libtool
[Top][All Lists]
Advanced

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

Re: Suppressing --whole-archive


From: Bob Friesenhahn
Subject: Re: Suppressing --whole-archive
Date: Mon, 5 Jan 2009 11:49:38 -0600 (CST)

On Mon, 5 Jan 2009, Barthelemy von Haller wrote:

The problem is that those two static libraries contain similar symbols leading to a lot of errors such as

/usr/lib/mysql/libz.a(adler32.o): In function `adler32':
/data1/mysqldev/tmp-200707041150-5.0.45-27425/rpm/BUILD/mysql-5.0.45/zlib/adler32.c:61: multiple definition of `adler32' /usr/lib/mysql/libmysqlclient.a(adler32.o):/data1/mysqldev/tmp-200707041150-5.0.45-27425/rpm/BUILD/mysql-5.0.45/zlib/adler32.c:61: first defined here

How can I remove this "-Wl,--whole-archive" which is put around the static libraries ?

What do you expect the result of this change to be? Will you be happy if it works for you, but not for many other people?

Note that even if the libraries are shared libraries, my experience is that the level of success is similar to betting at the horse races, or a visit to Las Vegas blackjack tables. Depending on the operating systems involved, and order of execution, the similarly named symbol may be pulled from one library or the other at run time since DLL symbols are resolved upon first use.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]