--- bind-9.9.4-P2/bin/dig/Makefile.orig	2014-03-04 14:45:53.091808036 -0800
+++ bind-9.9.4-P2/bin/dig/Makefile	2014-03-04 14:46:52.127806921 -0800
@@ -95,10 +95,10 @@
 		${LWRESDEPLIBS}
 
 LIBS =		${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
-		${ISCLIBS} -L/usr/lib -lidnkit  -ldl -lcap -lpthread  -lxml2 -lz -lm -ldl
+		${ISCLIBS} -L${libdir} -lidnkit  -ldl -lcap -lpthread  -lxml2 -lz -lm -ldl
 
 NOSYMLIBS =	${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
-		${ISCNOSYMLIBS} -L/usr/lib -lidnkit  -ldl -lcap -lpthread  -lxml2 -lz -lm -ldl
+		${ISCNOSYMLIBS} -L${libdir} -lidnkit  -ldl -lcap -lpthread  -lxml2 -lz -lm -ldl
 
 SUBDIRS =
 
