bug-libtool
[Top][All Lists]
Advanced

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

[PATCH] fix for Darwin shared library support


From: Joe Orton
Subject: [PATCH] fix for Darwin shared library support
Date: Tue, 28 Oct 2003 16:57:38 +0000
User-agent: Mutt/1.4.1i

Christian Schaffner tracked down a bug where libtool HEAD fails
to detect shared library support in the linker on Darwin.

This occurs in a configure script using AC_LIBTOOL_TAGS([]), because
AC_LIBTOOL_PROG_LD_SHLIBS is using $GXX not $GCC, but $GXX is not set.
The fix Christian wrote is below.  

Is there an alternative to using AC_LIBTOOL_TAGS([]) - without this I
can't seem to produce a configure script which works on a system without
a C++ compiler?

Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.8
diff -u -r1.8 libtool.m4
--- m4/libtool.m4       21 Oct 2003 15:03:56 -0000      1.8
+++ m4/libtool.m4       28 Oct 2003 16:46:41 -0000
@@ -5482,7 +5482,7 @@
       ;;
 
     darwin* | rhapsody*)
-    if test "$GXX" = yes ; then
+    if test "$GCC" = yes ; then
       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
       case "$host_os" in
       rhapsody* | darwin1.[[012]])







reply via email to

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