Mailinglist Archive: opensuse-buildservice (260 mails)

< Previous Next >
Re: [opensuse-buildservice] Pitfall with building on oS 11.2 (SUSE_ASNEEDED in environment)
  • From: Jan Engelhardt <jengelh@xxxxxxxxxx>
  • Date: Wed, 16 Dec 2009 21:24:46 +0100 (CET)
  • Message-id: <alpine.LSU.2.01.0912162121140.18496@xxxxxxxxxxxxxxx>

On Wednesday 2009-12-16 20:49, Adrian Schröter wrote:

The "fix" is reordering arguments:

-gcc $RPM_OPT_FLAGS -Wall -lGeoIP -o geoiplookup_continent
+gcc $RPM_OPT_FLAGS -Wall -o geoiplookup_continent
geoiplookup_continent.c -lGeoIP

Well, yes, but this is a typical problem which can happen at any
time with the gnu tools. Link order just matters, even when this
particular case was introduced with the asneeded feature of gcc, it
can happen also without.

I concur. Link order matters. It does for static libraries and,
perhaps not seen very often, does for some non-GNU tools. It just so
happens that GNU ld seems to default to relaxing when dynamic
libraries are used, almost as if the -( and -) options were given.
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >