pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/mpfr mpfr: disable float128 on NetBSD-7/x86_64



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4baa9b3b21c4
branches:  trunk
changeset: 375116:4baa9b3b21c4
user:      gson <gson%pkgsrc.org@localhost>
date:      Sat Feb 03 10:49:48 2018 +0000

description:
mpfr: disable float128 on NetBSD-7/x86_64

The mpfr configure script detects float128 support on NetBSD-7/x86_64,
and mpfr itself builds successfully with it, but other packages that
link with it, such as print/web2c, then fail to link with undefined
references to __floatunditf among other symbols.  Work around this by
passing --disable-float128 to the configure script.

diffstat:

 math/mpfr/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 83280fa84fe8 -r 4baa9b3b21c4 math/mpfr/Makefile
--- a/math/mpfr/Makefile        Sat Feb 03 09:53:03 2018 +0000
+++ b/math/mpfr/Makefile        Sat Feb 03 10:49:48 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.34 2018/01/28 16:18:23 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2018/02/03 10:49:48 gson Exp $
 
 DISTNAME=              mpfr-4.0.0
+PKGREVISION=           1
 CATEGORIES=            math
 MASTER_SITES=          http://www.mpfr.org/${DISTNAME}/
 EXTRACT_SUFX=          .tar.bz2
@@ -10,7 +11,11 @@
 COMMENT=               GMP-based library for multiple-precision floating-point computations
 LICENSE=               gnu-lgpl-v3
 
+.include "../../mk/bsd.prefs.mk"
 GNU_CONFIGURE=         yes
+.if !empty(MACHINE_PLATFORM:MNetBSD-[0-7]*-x86_64)
+CONFIGURE_ARGS+=        --disable-float128
+.endif
 USE_LIBTOOL=           yes
 TEST_TARGET=           check
 INFO_FILES=            yes



Home | Main Index | Thread Index | Old Index