Update of /cvsroot/fink/experimental/fangism/finkinfo In directory vz-cvs-3.sog:/tmp/cvs-serv7615
Modified Files: gmp5.info gmp5.patch Log Message: patch from jhowarth for building with llvm-gcc/clang Index: gmp5.info =================================================================== RCS file: /cvsroot/fink/experimental/fangism/finkinfo/gmp5.info,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- gmp5.info 11 May 2011 01:31:39 -0000 1.11 +++ gmp5.info 17 May 2011 02:27:45 -0000 1.12 @@ -9,8 +9,8 @@ Source-MD5: 87e73447afdc2ca5cefd987da865da51 # Source2: http://www.csl.cornell.edu/~fang/sw/gmp-trunk-20110131-config.guess # Source2-MD5: d526c73bbb512808aa4e871937dd6fa4 -# PatchFile: %{ni}.patch -# PatchFile-MD5: a32c8651a786aa499afd6b3cb997c017 +PatchFile: %{ni}.patch +PatchFile-MD5: 554e4c02947e38e86fae14b32c2da7f2 Depends: << %N-shlibs (= %v-%r), libgmpxx5%type_pkg[-64bit]-shlibs (= %v-%r), @@ -31,6 +31,7 @@ << PatchScript: << #!/bin/sh -ev + %{default_script} # echo "replacing gmp's config.guess with newer one from trunk (patched)" # mv config.guess config.guess.orig # sed 's|corei[a-z]*|corei|g' ../gmp-trunk-*-config.guess > ./config.guess @@ -141,6 +142,9 @@ As of vers. 4.2.3, we are building with -fexceptions, for the benefit of ppl library that will be used in gcc 4.4.x. (Suggested by Jack Howarth; see http://www.cs.unipr.it/ppl/ and http://gcc.gnu.org/wiki/Graphite .) + + Patch: from jhowarth for configure test on llvm-gcc/clang builds + checking how to switch to read-only data section... << Maintainer: David Fang <fang...@users.sourceforge.net> # Former maintainer: Dave Morrison <d...@finkproject.org> Index: gmp5.patch =================================================================== RCS file: /cvsroot/fink/experimental/fangism/finkinfo/gmp5.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gmp5.patch 8 May 2010 05:13:14 -0000 1.1 +++ gmp5.patch 17 May 2011 02:27:45 -0000 1.2 @@ -1,43 +1,13 @@ ---- gmp-5.0.0/mpn/x86_64/darwin.m4 2010-01-14 20:12:26.000000000 -0500 -+++ gmp-5.0.0-patched/mpn/x86_64/darwin.m4 2010-01-14 20:15:09.000000000 -0500 -@@ -22,4 +22,8 @@ - dnl - dnl Simply override the definition in x86_64-defs.m4. - -+define(`LEA',` -+ lea $1(%rip), $2 -+') -+ - define(`CALL',`call GSYM_PREFIX`'$1') ---- gmp-5.0.0/mpn/x86/invert_limb.asm Tue Jan 12 23:50:39 2010 +0100 -+++ gmp-5.0.0-patched/mpn/x86/invert_limb.asm Fri Jan 15 00:27:41 2010 +0100 -@@ -33,6 +33,13 @@ - - defframe(PARAM_DIVISOR,4) - -+ASM_START() -+ -+C Make approx_tab global to work around Apple relocation bug. -+ifdef(`DARWIN',` -+ define(`approx_tab', MPN(invert_limb_tab)) -+ GLOBL approx_tab') -+ - TEXT - ALIGN(16) - PROLOGUE(mpn_invert_limb) -@@ -95,9 +102,7 @@ - - EPILOGUE() +--- gmp-5.0.2/configure.orig 2011-05-16 17:59:59.000000000 -0400 ++++ gmp-5.0.2/configure 2011-05-16 18:00:36.000000000 -0400 +@@ -26446,8 +26446,8 @@ + esac -- RODATA -- ALIGN(2) --approx_tab: -+DEF_OBJECT(approx_tab,2) - .value 0x7fe1,0x7fa1,0x7f61,0x7f22,0x7ee3,0x7ea4,0x7e65,0x7e27 - .value 0x7de9,0x7dab,0x7d6d,0x7d30,0x7cf3,0x7cb6,0x7c79,0x7c3d - .value 0x7c00,0x7bc4,0x7b89,0x7b4d,0x7b12,0x7ad7,0x7a9c,0x7a61 -@@ -162,3 +167,4 @@ - .value 0x4179,0x4168,0x4157,0x4147,0x4136,0x4125,0x4115,0x4104 - .value 0x40f4,0x40e3,0x40d3,0x40c2,0x40b2,0x40a2,0x4091,0x4081 - .value 0x4071,0x4061,0x4050,0x4040,0x4030,0x4020,0x4010,0x4000 -+END_OBJECT(approx_tab) + cat >conftest.c <<EOF +-extern const int foo; /* Suppresses C++'s suppression of foo */ +-const int foo = {1,2,3}; ++/* extern const int foo; Suppresses C++'s suppression of foo */ ++static const int foo = {1,2,3}; + EOF + echo "Test program:" >&5 + cat conftest.c >&5 ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs