summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2017-08-22 08:21:36 +0000
committermrg <mrg@NetBSD.org>2017-08-22 08:21:36 +0000
commitcc62f5c39d331ff635b1809f9ca4b07ec16d6b8d (patch)
tree74c6d2d9fee73f3ff5d963f9bbb5773db343a160
parentafe9e9457d5f0b68d1c1e4a4631e5f78cda3ae28 (diff)
don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)
-rw-r--r--lib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 5dfaa3b8dfc..d0aeebe4cd5 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.251 2017/05/21 15:28:41 riastradh Exp $
+# $NetBSD: Makefile,v 1.252 2017/08/22 08:21:36 mrg Exp $
# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
.include <bsd.own.mk>
@@ -86,7 +86,7 @@ SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
# specific build area, but we get better parallelism this way.
# We don't build compat versions of these.
-. if !defined(MLIBDIR)
+. if !defined(MLIBDIR) && (${MKGCCCMDS} != "no")
SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
SUBDIR+= ../external/lgpl3/mpc/lib/libmpc