libtool-patches
[Top][All Lists]
Advanced

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

Fix ltdl-libdir test for C++ compilers.


From: Ralf Wildenhues
Subject: Fix ltdl-libdir test for C++ compilers.
Date: Fri, 6 Aug 2010 21:41:34 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Pushed as obvious to let 'configure CC=g++' pass the testsuite again.

Cheers,
Ralf

    Fix ltdl-libdir test for C++ compilers.
    
    * tests/ltdl-libdir.at (libdir of installed modules): Declare
    module function as extern "C".

diff --git a/tests/ltdl-libdir.at b/tests/ltdl-libdir.at
index 432d18e..f5dc33c 100644
--- a/tests/ltdl-libdir.at
+++ b/tests/ltdl-libdir.at
@@ -38,7 +38,9 @@ bindir=$prefix/bin
 mkdir $prefix $libdir $bindir
 
 AT_DATA([a.c],
-[[
+[[#ifdef __cplusplus
+extern "C"
+#endif
 int f (void)
 {
   return 42;



reply via email to

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