[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(no subject)
From: |
daniel |
Subject: |
(no subject) |
Date: |
14 Jun 2001 17:02:56 -0000 |
Hi,
Using the --with-tag configuration option to work with C++ (in my case)
seems to exmplicitly refer to the 'c++' compiler. This obviously fails
if the compiler is named differently (eg --host based cross-compiler).
Tentative fix is to reference $CXX.
Tested under Linux cross-compiling to Win32 DLL using Mingw32.
Also:- fix for misc syntax error under same conditions
Would appreciate feedback.
Daniel.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.170
diff -u -r1.170 libtool.m4
--- libtool.m4 2001/06/06 22:06:57 1.170
+++ libtool.m4 2001/06/14 16:43:58
@@ -1392,7 +1392,7 @@
# can override, but on older systems we have to supply one (in ltdll.c)
if test "x$lt_cv_need_dllmain" = "xyes"; then
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
- ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\*
ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e
d < [$]0 > $output_objdir/$soname-ltdll.c~
+ ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\*
ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e
d < $''0 > $output_objdir/$soname-ltdll.c~
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir
&& $CC -c $soname-ltdll.c)~'
else
ltdll_obj=
@@ -3042,7 +3042,7 @@
echo appending configuration tag \"$tagname\" to $ofile
case $tagname in
- CXX) CC=c++ ;;
+ CXX) CC=$CXX ;;
GCJ) CC=gcj ;;
*) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;;
esac
Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.930
diff -u -r1.930 ChangeLog
--- ChangeLog 2001/06/06 22:06:57 1.930
+++ ChangeLog 2001/06/14 16:43:59
@@ -1,3 +1,11 @@
+2001-06-15 Daniel Harvey <address@hidden>
+
+ * libtool.m4 ltdll_cmds - [$]0 doesn't appear to translate through
+ the script correctly, change to $''0
+ * libtool.m4 - tag CXX uses 'c++' explicitly so fails on
+ cross-compile; perhaps refer to $CXX instead - unsure of other
+ implications, seems to work.
+
2001-06-06 Gary V. Vaughan <address@hidden>
* demo/Makefile.am (objdir): Use `libtool --config' for