summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-05-18 16:05:41 +0000
committerbapt <bapt@FreeBSD.org>2015-05-18 16:05:41 +0000
commita6c55c35fad1434a04983213809437b7e42388c8 (patch)
tree55376478c0d842d1bd85bed237af02abe6d983bd /gnu
parentc305444c0fa75030c3605dfb486ea128911a8bce (diff)
downloadFreeBSD-src-a6c55c35fad1434a04983213809437b7e42388c8.zip
FreeBSD-src-a6c55c35fad1434a04983213809437b7e42388c8.tar.gz
Only build libreadline if gdb is going to be built
gdb is the only consumer of libreadline which is an INTERNALLIB
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile
index a208c79..796cefc 100644
--- a/gnu/lib/Makefile
+++ b/gnu/lib/Makefile
@@ -2,7 +2,7 @@
.include <src.opts.mk>
-SUBDIR= csu libgcc libdialog libregex libreadline
+SUBDIR= csu libgcc libdialog libregex
.if ${MK_GCC} != "no"
SUBDIR+= libgcov libgomp
@@ -16,6 +16,10 @@ SUBDIR+= libssp
SUBDIR+= tests
.endif
+.if ${MK_GDB} != "no"
+SUBDIR+= libreadline
+.endif
+
# libsupc++ uses libstdc++ headers, although 'make includes' should
# have taken care of that already.
.if ${MK_GNUCXX} != "no"
OpenPOWER on IntegriCloud