libtool-patches
[Top][All Lists]
Advanced

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

Support 64-bit default GCC on Solaris/x86


From: Rainer Orth
Subject: Support 64-bit default GCC on Solaris/x86
Date: Mon, 31 Oct 2011 14:14:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v)

In version 4.7, GCC will gain a 64-bit default Solaris/x86
configuration, similar to the existing sparcv9-sun-solaris2
configurations.  In order for that to work with GNU ld (Sun ld works out
of the box), I had to make the following minor patch to libtool.m4.

This patch has been tested with a slightly earlier version already
included in the gcc repository for Go support.  There's an effort
underway to upgrade the libtool in gcc to 2.4.2.  A gcc bootstrap with
64-bit gld and this patch included completed without regressions.

If the patch is accepted, it would be good if it could be included in
libtool 2.4.3 so by the time gcc 4.7 is released, a corresponding
version of libtool is available.

Thanks.

        Rainer


2011-10-31  Rainer Orth  <address@hidden>

        * libltdl/m4/libtool.m4: Handle x86_64-*-solaris2.1[0-9]* like
        i?86-*-solaris* when determining GNU ld flags to pass for 64-bit
        objects.

--- libtool.m4.dist     2011-10-30 19:21:35.014541633 +0100
+++ libtool.m4  2011-10-30 21:37:43.361978987 +0100
@@ -1383,7 +1383,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
       case $lt_cv_prog_gnu_ld in
       yes*)
         case $host in
-        i?86-*-solaris*)
+        i?86-*-solaris* | x86_64-*-solaris2.1[[0-9]]*)
           LD="${LD-ld} -m elf_x86_64"
           ;;
         sparc*-*-solaris*)

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

reply via email to

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