From d1a690337764bdfddca774b0eb2bfbb15d5a568b Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 20 Oct 2016 17:28:52 +0000 Subject: [PATCH] Build libgnuregex only if necessary for other components Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D8298 --- gnu/lib/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile index 2791b569896..cfb69a841ac 100644 --- a/gnu/lib/Makefile +++ b/gnu/lib/Makefile @@ -4,7 +4,6 @@ SUBDIR= csu SUBDIR+= libgcc -SUBDIR+= libregex SUBDIR.${MK_DIALOG}+= libdialog SUBDIR.${MK_GCC}+= libgcov libgomp @@ -15,6 +14,11 @@ SUBDIR.${MK_TESTS}+= tests SUBDIR+= libreadline .endif +.if ${MK_GNU_DIFF} != "no" || ${MK_GNU_GREP} != "no" || \ + ${GNU_GREP_COMPAT} != "no" || ${MK_GDB} != "no" +SUBDIR+= libregex +.endif + # libsupc++ uses libstdc++ headers, although 'make includes' should # have taken care of that already. .if ${MK_GNUCXX} != "no"