libtool-patches
[Top][All Lists]
Advanced

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

F77 hidden sysdeps (was: Solaris whole_archive update)


From: Ralf Wildenhues
Subject: F77 hidden sysdeps (was: Solaris whole_archive update)
Date: Sun, 15 May 2005 16:25:44 +0200
User-agent: Mutt/1.5.9i

This is from an older Solaris thread.  I am sorry for seeming to talk to
myself.

* Ralf Wildenhues wrote on Sat, Apr 23, 2005 at 06:30:00PM CEST:
> * Ralf Wildenhues wrote on Sat, Apr 23, 2005 at 03:41:25PM CEST:
> > 
> > Ahh, I actually know how to fix the Fortran failures, I think:
> > AC_LIBTOOL_POSTDEP_PREDEP is missing from AC_LIBTOOL_LANG_F77_CONFIG.
> > What I don't know is whether this was done by accident or on purpose to
> > fix some breakage on other systems (have not checked the archives yet).
*snip*
> Interestingly, this has never been part of Libtool.  At the time F77
> support was enabled, the corresponding code had not been factored out of
> the C++ config yet.

I know of at least one compiler that barfs without this (PGI pgf90),
unless FFLAGS are added when linking a Fortran shared lib into a C
program.  However, I feel very uncomfortable putting such a wide-ranging
patch into stable branch-1-5, because of the unknown implications for
other compilers.  I also believe with proposed F90/FC support this will
be important for other compilers as well.  I have tested this on a few
platforms.

Since branch-2-0 will have another alpha:  OK to apply the following to
HEAD and branch-2-0?

Regards,
Ralf

        * m4/libtool.m4 (_LT_LANG_F77_CONFIG): Call _LT_SYS_HIDDEN_LIBDEPS.

Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.125.2.56
diff -u -r1.125.2.56 libtool.m4
--- m4/libtool.m4       15 May 2005 14:12:36 -0000      1.125.2.56
+++ m4/libtool.m4       15 May 2005 14:24:17 -0000
@@ -5854,6 +5854,7 @@
     ## There is no encapsulation within the following macros, do not change
     ## the running order or otherwise move them around unless you know exactly
     ## what you are doing...
+    _LT_SYS_HIDDEN_LIBDEPS($1)
     _LT_COMPILER_PIC($1)
     _LT_COMPILER_C_O($1)
     _LT_COMPILER_FILE_LOCKS($1)




reply via email to

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