libtool-patches
[Top][All Lists]
Advanced

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

FYI: fix simple C++ link code m4 quoting (was: FYI: ksh bug on Tru64 UNI


From: Ralf Wildenhues
Subject: FYI: fix simple C++ link code m4 quoting (was: FYI: ksh bug on Tru64 UNIX causes current libtool failure)
Date: Wed, 5 Oct 2005 17:57:32 +0200
User-agent: Mutt/1.5.11

Hi Nicolas,

Your last mail requires several (>=3) distinct answers.
First, easiest, and most embarrassing:

* Nicolas Joly wrote on Wed, Oct 05, 2005 at 03:22:10PM CEST:
>
> | configure:15107: checking if cxx static flag -non_shared works
> | cxx: Warning: conftest.cpp, line 1: main's second parameter (argv) must have
> |           char ** type
> | int main(int, char *) { return(0); }
> | ----^
> | configure:15135: result: yes


I have applied the following fix to CVS branch-1-5 and HEAD.
Can't believe how much sh*t you can throw at compilers and have them
accept it, too...

(And I just noted another bug in branch-1-5, sheesh..)

Cheers,
Ralf

branch-1-5:
        * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): Fix m4 quoting for
        lt_simple_link_test_code.
        Reported by Nicolas Joly <address@hidden>.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.113
diff -u -r1.314.2.113 libtool.m4
--- libtool.m4  27 Sep 2005 16:25:42 -0000      1.314.2.113
+++ libtool.m4  5 Oct 2005 15:48:52 -0000
@@ -2727,7 +2727,7 @@
 lt_simple_compile_test_code="int some_variable = 0;\n"
 
 # Code to be used in simple link tests
-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
+lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 _LT_AC_SYS_COMPILER


HEAD:
        * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Fix m4 quoting
        for lt_simple_link_test_code.
        Reported by Nicolas Joly <address@hidden>.

Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.24
diff -u -r1.24 libtool.m4
--- libltdl/m4/libtool.m4       5 Oct 2005 08:54:25 -0000       1.24
+++ libltdl/m4/libtool.m4       5 Oct 2005 15:49:41 -0000
@@ -4954,7 +4954,7 @@
   lt_simple_compile_test_code="int some_variable = 0;\n"
 
   # Code to be used in simple link tests
-  lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
+  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   _LT_TAG_COMPILER




reply via email to

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