Skip to content
Permalink
Browse files

gmp:

Allow config.guess script to recognize Sandy Bridge (SB) processor.
Revision increased because gmp might now run faster on SB.
Fixes https://trac.macports.org/ticket/28892.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@77717 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
MarcusCalhoun-Lopez committed Apr 10, 2011
1 parent 2f9ad8f commit 59b1bf8346f15d163d06c996837098e211cc921c
Showing with 15 additions and 1 deletion.
  1. +5 −1 devel/gmp/Portfile
  2. +10 −0 devel/gmp/files/patch-config.guess.i7.diff
@@ -6,6 +6,7 @@ PortGroup muniversal 1.0

name gmp
version 5.0.1
revision 1
categories devel math
maintainers mcalhoun openmaintainer
platforms darwin
@@ -34,6 +35,9 @@ use_parallel_build yes
# See #16634
patchfiles patch-gmp-h.in.diff

# Until GMP 5.0.2 is released, Sandy Bridge not recognized. See #28892
patchfiles-append patch-config.guess.i7.diff

configure.args --infodir=${prefix}/share/info \
--enable-cxx

@@ -63,7 +67,7 @@ post-destroot {
if {![variant_isset universal]} {
if {${build_arch} == "x86_64"} {
configure.env ABI=64
# fails to correctly detect some x86_64 models (e.g. Sandy Bridge)
# fails to correctly detect some x86_64 models
pre-configure {
set build_triplet [split [exec /usr/bin/env CC=${configure.cc} ${worksrcpath}/config.guess] -]
set build_cpu [lindex $build_triplet 0]
@@ -0,0 +1,10 @@
--- config.guess.orig 2010-02-06 05:43:13.000000000 -0700
+++ config.guess 2011-04-10 09:11:34.000000000 -0700
@@ -742,6 +742,7 @@
else if (model == 0x25) modelstr = "corei"; /* WSM Clarkdale/Arrandale */
else if (model == 0x26) modelstr = "atom"; /* Lincroft */
else if (model == 0x27) modelstr = "atom"; /* Saltwell */
+ else if (model == 0x2a) modelstr = "corei"; /* SB */
else if (model == 0x2c) modelstr = "corei"; /* WSM Gulftown */
else if (model == 0x2e) modelstr = "corei"; /* NHM Beckton */
break;

0 comments on commit 59b1bf8

Please sign in to comment.
You can’t perform that action at this time.