From a6c55c35fad1434a04983213809437b7e42388c8 Mon Sep 17 00:00:00 2001 From: bapt Date: Mon, 18 May 2015 16:05:41 +0000 Subject: [PATCH] Only build libreadline if gdb is going to be built gdb is the only consumer of libreadline which is an INTERNALLIB --- gnu/lib/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile index a208c79c37a7..796cefcacc98 100644 --- a/gnu/lib/Makefile +++ b/gnu/lib/Makefile @@ -2,7 +2,7 @@ .include -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"