summaryrefslogtreecommitdiff
path: root/lang/gcc47
diff options
context:
space:
mode:
authorhans <hans>2012-05-03 12:20:18 +0000
committerhans <hans>2012-05-03 12:20:18 +0000
commit5fd1c44d6e6477a5ae8da1ee1747045ad436bee6 (patch)
tree21847bb986f924b3883ba8ca659483459d7dd62f /lang/gcc47
parenteaf45ddfd649163095abfcb3a47afe3f291a5038 (diff)
downloadpkgsrc-5fd1c44d6e6477a5ae8da1ee1747045ad436bee6.tar.gz
Make gcc-inplace-math work with new mpfr.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51935
Diffstat (limited to 'lang/gcc47')
-rw-r--r--lang/gcc47/distinfo3
-rw-r--r--lang/gcc47/patches/patch-configure19
2 files changed, 21 insertions, 1 deletions
diff --git a/lang/gcc47/distinfo b/lang/gcc47/distinfo
index 6655100eec0..b65dd81c4a1 100644
--- a/lang/gcc47/distinfo
+++ b/lang/gcc47/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2012/04/30 09:12:28 sbd Exp $
+$NetBSD: distinfo,v 1.5 2012/05/03 12:20:19 hans Exp $
SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449
RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a
@@ -6,6 +6,7 @@ Size (ecj-4.5.jar) = 1470676 bytes
SHA1 (gcc-4.7.0.tar.bz2) = 03b8241477a9f8a34f6efe7273d92b9b6dd9fe82
RMD160 (gcc-4.7.0.tar.bz2) = 4ed660b281cdb9bcf98f5c2cf2da105c71db5be4
Size (gcc-4.7.0.tar.bz2) = 82518546 bytes
+SHA1 (patch-configure) = 3482c45096a3c100c68c1b56947a12197b141292
SHA1 (patch-gcc_Makefile.in) = 2372899a37259c89281e6bd1223e39df9b53a7e3
SHA1 (patch-gcc_config.gcc) = 0fd91e83b97886589280d94457a71c0c551e93a3
SHA1 (patch-gcc_config_netbsd-stdint.h) = 025fc883101a187e84ed4c0772406720d645d550
diff --git a/lang/gcc47/patches/patch-configure b/lang/gcc47/patches/patch-configure
new file mode 100644
index 00000000000..08a5be9848e
--- /dev/null
+++ b/lang/gcc47/patches/patch-configure
@@ -0,0 +1,19 @@
+$NetBSD: patch-configure,v 1.1 2012/05/03 12:20:19 hans Exp $
+
+--- configure.orig 2011-03-16 18:27:36.000000000 +0000
++++ configure
+@@ -5279,9 +5279,11 @@ if test "x$with_mpfr_lib" != x; then
+ gmplibs="-L$with_mpfr_lib $gmplibs"
+ fi
+ if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
+- gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
+- gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
+- extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
++ sdir=
++ test -d "${srcdir}/mpfr/src" && sdir=/src
++ gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr'"$sdir/$lt_cv_objdir $gmplibs"
++ gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr'"$sdir "'-I$$s/mpfr'"$sdir $gmpinc"
++ extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'"$sdir "'--with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr'"$sdir/$lt_cv_objdir"
+ # Do not test the mpfr version. Assume that it is sufficient, since
+ # it is in the source tree, and the library has not been built yet
+ # but it would be included on the link line in the version check below