bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with libtool and Absoft Fortran on Mac OS X


From: Tony Goelz
Subject: Re: Problem with libtool and Absoft Fortran on Mac OS X
Date: Tue, 23 Feb 2010 07:37:31 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1

Ralf,

Sorry, I got sucked into a black hole before I got a chance to respond. I did some more experiments this morning and have come to the conclusion that it is not possible to create an OS X dynamic library using only our compiler driver. If one of our customers asked for instructions on how to create a dynamic library, we would have them invoke the C compiler to create the library:

    f90 -c -fpic foo1.f90
    f90 -c -fpic foo2.f90
    gcc -dynamiclib -o libfoo.dylib -install_name libfoo.dylib \
            -compatibility_version 1.0.0 -current_version 1.0.0 \
             foo1.o foo2.o -L$ABSOFT/lib -laf90math -lafio -laf77math

Again, sorry for the delay and confusion.

Tony


On 02/22/2010 04:28 PM, Ralf Wildenhues wrote:
* Ralf Wildenhues wrote on Tue, Feb 09, 2010 at 09:14:34PM CET:
* Tony Goelz wrote on Tue, Feb 09, 2010 at 05:47:34PM CET:
1) Do these compilers support the creation of shared libraries at all?

The Power PC compilers (9.2 and 9.5) do not support creating shared
libraries at all. The Intel compilers (version 10.0 and later)
support it but only through passing options through "-Wl," to the
underlying gcc compiler which will perform the link.

How exactly would such a link line look like?  E.g.,
   f90 -o libfoo.so -Wl,-shared -Wl,-soname,libfoo.so.1 foo.o ...

Ping!


_______________________________________________
Bug-libtool mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-libtool






reply via email to

[Prev in Thread] Current Thread [Next in Thread]