From a2a54c3f32af1a9c04c0f05c24e38f5d4b5d6972 Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 21 Sep 2011 02:06:42 +0000 Subject: [PATCH] allow LIBISPRIVATE to be overriden, and install everything again. helpful for mknative-gcc. --- external/lgpl2/mpc/lib/libmpc/Makefile | 9 +++++++-- external/lgpl3/gmp/lib/libgmp/Makefile | 9 +++++++-- external/lgpl3/mpfr/lib/libmpfr/Makefile | 9 +++++++-- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/external/lgpl2/mpc/lib/libmpc/Makefile b/external/lgpl2/mpc/lib/libmpc/Makefile index de38721d89ff..0ac4b73ec533 100644 --- a/external/lgpl2/mpc/lib/libmpc/Makefile +++ b/external/lgpl2/mpc/lib/libmpc/Makefile @@ -1,9 +1,14 @@ -# $NetBSD: Makefile,v 1.4 2011/07/21 03:13:30 mrg Exp $ +# $NetBSD: Makefile,v 1.5 2011/09/21 02:06:42 mrg Exp $ .include # We don't install mpc, just provide it for GCC. -LIBISPRIVATE= yes +LIBISPRIVATE?= yes + +.if ${LIBISPRIVATE} != "yes" +INCS= mpc.h mpc-log.h +INCSDIR= /usr/include +.endif LIB= mpc diff --git a/external/lgpl3/gmp/lib/libgmp/Makefile b/external/lgpl3/gmp/lib/libgmp/Makefile index 9518df53f6bf..b07d5dddd786 100644 --- a/external/lgpl3/gmp/lib/libgmp/Makefile +++ b/external/lgpl3/gmp/lib/libgmp/Makefile @@ -1,9 +1,14 @@ -# $NetBSD: Makefile,v 1.11 2011/08/09 13:01:34 joerg Exp $ +# $NetBSD: Makefile,v 1.12 2011/09/21 02:06:42 mrg Exp $ .include # We don't install gmp, just provide it for GCC. -LIBISPRIVATE= yes +LIBISPRIVATE?= yes + +.if ${LIBISPRIVATE} != "yes" +INCS= gmp.h +INCSDIR= /usr/include +.endif DIST=${.CURDIR}/../../dist diff --git a/external/lgpl3/mpfr/lib/libmpfr/Makefile b/external/lgpl3/mpfr/lib/libmpfr/Makefile index 750153a431a5..47b28b8843e2 100644 --- a/external/lgpl3/mpfr/lib/libmpfr/Makefile +++ b/external/lgpl3/mpfr/lib/libmpfr/Makefile @@ -1,9 +1,14 @@ -# $NetBSD: Makefile,v 1.8 2011/07/21 03:13:30 mrg Exp $ +# $NetBSD: Makefile,v 1.9 2011/09/21 02:06:42 mrg Exp $ .include # We don't install mpfr, just provide it for GCC. -LIBISPRIVATE= yes +LIBISPRIVATE?= yes + +.if ${LIBISPRIVATE} != "yes" +INCS= mpf2mpfr.h mpfr.h +INCSDIR= /usr/include +.endif # XXX get_d.c triggers lint div zero errors (which is valid?) MKLINT=no