Mailinglist Archive: opensuse-factory (1172 mails)

< Previous Next >
Re: [opensuse-factory] What should I add to linker?
On Friday 02 September 2011 02:55:16 Cristian Morales Vega wrote:

And what you need to do is put "-lz" *after* "-ltransform".

Why? This looks very strange for me.

Because it's the documented behaviour. From man ld:

"The linker will search an archive only once, at the location where it
is specified on the command line. If the archive defines a symbol
which was undefined in some object which appeared before the archive
on the command line, the linker will include the appropriate file(s)
from the archive. However, an undefined symbol in an object appearing
later on the command line will not cause the linker to search the
archive again."

The code that uses uncompress() is in libtransform.a (specifically in
FSTransform.o) and so libz must be later in the command line.

I spent all the day on this package and I do not know how to add it before
ltransform :-(
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups