Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2016 17:28:52 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r307679 - head/gnu/lib
Message-ID:  <201610201728.u9KHSq2X009398@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Oct 20 17:28:52 2016
New Revision: 307679
URL: https://svnweb.freebsd.org/changeset/base/307679

Log:
  Build libgnuregex only if necessary for other components
  
  Reviewed by:	brooks
  Differential Revision:	https://reviews.freebsd.org/D8298

Modified:
  head/gnu/lib/Makefile

Modified: head/gnu/lib/Makefile
==============================================================================
--- head/gnu/lib/Makefile	Thu Oct 20 17:16:09 2016	(r307678)
+++ head/gnu/lib/Makefile	Thu Oct 20 17:28:52 2016	(r307679)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610201728.u9KHSq2X009398>