diff --git a/lib/bind/lwres/Makefile b/lib/bind/lwres/Makefile index f8dafdf285c1..a284df0c1c2f 100644 --- a/lib/bind/lwres/Makefile +++ b/lib/bind/lwres/Makefile @@ -5,6 +5,11 @@ LIB_BIND_REL= .. LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} SRCDIR= ${BIND_DIR}/lib/lwres +# Unlike other BIND libs, this should be installed unless the user says NO. +.if !defined(NO_BIND_LIBS_LWRES) +WITH_BIND_LIBS= YES +.endif + .include "${LIB_BIND_DIR}/config.mk" LIB= lwres @@ -22,14 +27,7 @@ CFLAGS+= -I${.CURDIR} DPADD= ${PTHREAD_DPADD} LDADD= ${PTHREAD_LDADD} -# Unlike other BIND libs, this should be installed unless the user says NO. -.if !defined(NO_BIND) -.if !defined(NO_BIND_LIBS_LWRES) -.undef INTERNALLIB - -SHLIB_MAJOR= ${LIBINTERFACE} -SHLIB_MINOR= ${LIBINTERFACE} - +.if defined(WITH_BIND_LIBS) INCS= ${SRCDIR}/include/lwres/context.h \ ${SRCDIR}/include/lwres/int.h \ ${SRCDIR}/include/lwres/ipv6.h \ @@ -46,6 +44,5 @@ INCS= ${SRCDIR}/include/lwres/context.h \ INCSDIR= ${INCLUDEDIR}/lwres .endif -.endif .include