On Fri, Jan 7, 2011 at 13:30, Ed Hartnett <e...@unidata.ucar.edu> wrote:
> For some reason, the libtool script that ships with the dist is ignored,
> and the build tries to use /usr/bin/libtool instead, and that's where it
> comes unglued. This may have nothing to do with macos, but may mearly be
> happening on this machine because an old version of libtool is installed
> there.

Attention! On Mac OS, /usr/bin/libtool is not GNU libtool but rather a
helper script that is called internally when creating a shared
library. Your build log clearly shows that ../libtool (i.e. GNU
libtool) is called to link the library. The compiler, i.e. g95, then
calls /usr/bin/libtool internally. The point where it breaks is that
your /usr/bin/libtool does not understand the -force_load parameter,
which was introduced as " -Wl,-force_load,../f90/.libs/libnetcdff90.a"
in the compiler command line.

As discussed on this very list, in
http://www.mail-archive.com/libtool-patches@gnu.org/msg04867.html, the
-force_load linker flag is only supported on Mac OS 10.6 and up.

HTH.

--Benny.

-- 
The first essential in chemistry is that you should perform practical
work and conduct experiments, for he who performs not practical work
nor makes experiments will never attain the least degree of mastery.
        -- Abu Musa Jabir ibn Hayyan (721-815)

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

Reply via email to