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 geoiplookup_continent.c +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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org