Re: Support 64-bit default GCC on Solaris/x86
On Wed, 9 Oct 2013, Brooks Moses wrote: On 10/31/2011 06:14 AM, Rainer Orth wrote: 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. Looks like this is essentially equivalent to the patch from Fabian Groffen that I recently committed: http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=eee4f853019cc246b1d65054771f85ef500098ff The distinction is that you match only x86_64-*-solaris2.1[[0-9]]*, while Fabian's patch matches x86_64-*-solaris*. Is there a need for the more-complex pattern? If so, I can make an amended commit. Fabian's version looks fine to me. Bob -- Bob Friesenhahn bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
Support 64-bit default GCC on Solaris/x86
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 r...@cebitec.uni-bielefeld.de * 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
Re: Support 64-bit default GCC on Solaris/x86
Rainer Orth wrote: 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 Orthr...@cebitec.uni-bielefeld.de * 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. hmm, Eric PAIRE post a patch . Summary could be found in this thread http://lists.gnu.org/archive/html/libtool/2011-10/msg00017.html Note Eric's patch is for *kfreebsd* and *linux* and does not cover solaris. My question is what is result of libtool regression test if instead to add x86_64-*-... you replace $host by $build one line above ? Roumen