libtool-patches
[Top][All Lists]
Advanced

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

Sync C++ linking on HEAD with branch-1-5


From: Albert Chin
Subject: Sync C++ linking on HEAD with branch-1-5
Date: Wed, 9 Nov 2005 10:11:09 -0600
User-agent: Mutt/1.5.6i

When linking C++ libraries/programs, link with the compiler, not the
linker. Syncs with branch-1-5.
-- 
albert chin (address@hidden)

-- snip snip
2005-11-09  Albert Chin-A-Young  <address@hidden>

        * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Sync C++
        linking on HP-UX with branch-1-5. Use C++ compiler for
        linking rather than ld.

Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.36
diff -u -3 -p -r1.36 libtool.m4
--- libltdl/m4/libtool.m4       7 Nov 2005 18:28:25 -0000       1.36
+++ libltdl/m4/libtool.m4       9 Nov 2005 16:06:29 -0000
@@ -5429,7 +5430,7 @@ if test "$_lt_caught_CXX_error" != yes; 
           aCC*)
            case $host_cpu in
              hppa*64*|ia64*)
-               _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib 
$linker_flags $libobjs $deplibs'
+               _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o 
$lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                ;;
              *)
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname 
${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs 
$postdep_objects $compiler_flags'
@@ -5450,7 +5451,7 @@ if test "$_lt_caught_CXX_error" != yes; 
              if test $with_gnu_ld = no; then
                case $host_cpu in
                  ia64*|hppa*64*)
-                   _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib 
$linker_flags $libobjs $deplibs'
+                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC 
${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects 
$compiler_flags'
                    ;;
                  *)
                    _LT_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'




reply via email to

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