I am trying to link a shared library against a libtool convenience library on an AMD opteron with libtool 1.5.10, automake 1.9, autoconf 2.59, and gcc-3.2.2 (SuSE Linux). If I use the normal method, that works fine under RedHat on Intel x86 (32 bit) and MinGW, I get the following error when linking my shared library:

relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC

If I explicitly specify the "-fPIC" flag as part of my convenience library CFLAGS and rebuild it, then all links fine. My concern here is if some later compiler does not support "-fPIC". I am counting on libtool to figure this stuff out for me.

I have read Daniel Reed's posting to [EMAIL PROTECTED] entitled "disable nopic on x86_64 and s390* (was: Re: GNU Libtool 1.5.8 released.)" and it looks like you simply turned off this test. Is this to be actually fixed at some point? Is there a work around for using libtool convenience libraries in building shared libtool libraries?

Any help would be appreciated,

wtj
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    Bill Jones                                   [EMAIL PROTECTED]
    Mail Stop 125                       Data Analysis and Imaging Branch
    15 Langley Boulevard                  Systems Engineering Competency
    NASA Langley Research Center                Building 1268, Room 1038
    Hampton, VA  23681-2199                        Phone +1 757 864-5318
                                                     Fax +1 757 864-7635
                                             http://geolab.larc.nasa.gov



_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to