On 05/22/2014 07:39 AM, James L. Barker wrote:
> OS: RHEL 6.5

Have you considered raising a support ticket with Red Hat?

> Autoconf: 2.63

This is not the latest version; perhaps a configure script generated by
a newer autoconf improves the behavior?

> Automake: 1.11.1
> 
> I have a library compiled as a mylib.a without Position Independent Code.
> 
> When I put the following line in my configure.ac file, the library is
> not found.
> LDFLAGS="-I/usr/local/packages/lib"
> AC_CHECK_LIB(mylib, function)
> 
> The ./configure script can't find -lmylib.

What was the exact error message in config.log? It may be that you are
hitting a real limitation of your toolchain, where the linker refuses to
link against incompatible libraries, in which case, it is not a bug in
autoconf but in your setup.

> 
> I recompiled mylib.a with the -fPIC options, and all of a sudden
> ./configure can now find it.
> 
> Does the ./configure not work with libraries that haven't been compiled
> with position independent code, or is this a bug?
> 
> When I do a nm on both the PIC and non-PIC library, the symbols are
> clearly listed.


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to