changeset 5188:112295d441b2

libtool: set ac_cv_prog_F77=no. Thanks Patrick!. Workraound for bug in libtool-2.2.6a: it will use CC=$F77 (==/usr/bin/gfortran) -print-search-dirs instead of <cross-toolchain-prefix>-gcc -print-search-dirs to determine sys_lib_search_path_spec; breaking all linkages. http://lists.gnu.org/archive/html/bug-libtool/2009-02/msg00017.html
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 19 Feb 2009 13:06:44 +0100
parents 096674973a8f
children 1733be23d81f
files gub/specs/libtool.py
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/libtool.py	Wed Feb 18 15:55:43 2009 +0100
+++ b/gub/specs/libtool.py	Thu Feb 19 13:06:44 2009 +0100
@@ -40,6 +40,18 @@
         return d
     def update_libtool (self):
         pass
+    def config_cache_overrides (self, string):
+        # Workraound for bug in libtool-2.2.6a: it will use CC=$F77
+        # (==/usr/bin/gfortran) -print-search-dirs instead of
+        # <cross-toolchain-prefix>-gcc -print-search-dirs to determine
+        # sys_lib_search_path_spec; breaking all linkages.
+        # http://lists.gnu.org/archive/html/bug-libtool/2009-02/msg00017.html
+        return (string
+                + '''
+ac_cv_prog_F77=${ac_cv_prog_F77=no}
+ac_cv_prog_FC=${ac_cv_prog_FC=no}
+ac_cv_prog_GCJ=${ac_cv_prog_GCJ=no}
+''')
     def configure_command (self):
         # libtool's build breaks with SHELL=; CONFIG_SHELL works
         # and adds dash to libtools' #!