Skip to content

Commit

Permalink
mpfr: disable float128 on NetBSD-7/x86_64
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gson committed Feb 3, 2018
1 parent fffcc38 commit 7611aff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion math/mpfr/Makefile
@@ -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
Expand All @@ -10,7 +11,11 @@ HOMEPAGE= http://www.mpfr.org/
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
Expand Down

0 comments on commit 7611aff

Please sign in to comment.