[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HEAD and different C, C++ compilers
From: |
libtool |
Subject: |
Re: HEAD and different C, C++ compilers |
Date: |
Fri, 21 Sep 2001 11:31:29 -0500 |
User-agent: |
Mutt/1.2.5i |
On Fri, Sep 21, 2001 at 12:33:22AM -0500, address@hidden wrote:
> Does HEAD support *different* a different C and C++ compiler (e.g.
> native vendor C and GNU C++)?
Well, HEAD passes all tests with AIX 4.3.2 and CC=xlc, CXX=g++. HP-UX
10.20 does not. Tru64 UNIX 4.0D with CC=cc, CXX=g++ works too.
Ok. This patch works. Basically, switch $GXX and $GCC. I've also
included some indentation fixes. Most tests on HP-UX 10.20 pass (well,
the same tests that passed before the patch pass with the patch):
CC=cc CXX=g++
CC=gcc CXX=g++
And, on HP-UX 11.00, all tests pass with:
CC=cc CXX=aCC
CC=cc CXX=g++
CC=gcc CXX=g++
--
albert chin (address@hidden)
-- snip snip
2001-09-21 Albert Chin-A-Young <address@hidden>
* libtool.m4: When setting archive_cmds for CC, don't
test for $GXX but for $GCC on HP-UX. Indentation fixes.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.233
diff -u -3 -p -r1.233 libtool.m4
--- libtool.m4 2001/09/21 03:06:40 1.233
+++ libtool.m4 2001/09/21 06:32:49
@@ -2558,8 +2558,9 @@ case $host_os in
else
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
fi
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, but as
the default
- # location of the library.
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
case $cc_basename in
CC)
@@ -2569,9 +2570,9 @@ case $host_os in
aCC)
case $host_os in
hpux9*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b
${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib ||
mv $output_objdir/$soname $lib'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b
${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib ||
mv $output_objdir/$soname $lib'
;;
- *)
+ *)
if test "$host_cpu" = ia64; then
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib
$linker_flags $libobjs $deplibs'
else
@@ -2594,15 +2595,15 @@ case $host_os in
if test $with_gnu_ld = no; then
case $host_os in
hpux9*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm
$output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir
-o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects
$compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname
$lib'
- ;;
- *)
- if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib
$linker_flags $libobjs $deplibs'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC
${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags'
- fi
- ;;
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC
-shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test
$output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ ;;
+ *)
+ if test "$host_cpu" = ia64; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib
$linker_flags $libobjs $deplibs'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC
${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags'
+ fi
+ ;;
esac
fi
else
@@ -4721,12 +4722,12 @@ EOF
;;
hpux9* | hpux10* | hpux11*)
- if test "$GXX" = yes; then
+ if test "$GCC" = yes; then
case $host_os in
hpux9*)
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC
-shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs
$deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv
$output_objdir/$soname $lib'
;;
- *)
+ *)
if test "$host_cpu" = ia64; then
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h
${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
else
- Re: HEAD and different C, C++ compilers,
libtool <=