diff --git a/external/gpl3/gcc.old/lib/liblto_plugin/Makefile b/external/gpl3/gcc.old/lib/liblto_plugin/Makefile index a27c4f407f3a..3fe74e24d84e 100644 --- a/external/gpl3/gcc.old/lib/liblto_plugin/Makefile +++ b/external/gpl3/gcc.old/lib/liblto_plugin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2017/07/23 01:12:06 mrg Exp $ +# $NetBSD: Makefile,v 1.4 2017/11/04 15:59:16 kamil Exp $ .include .include @@ -31,6 +31,10 @@ LIBDIR= /usr/libexec SHLIB_MAJOR= 0 SHLIB_MINOR= 0 +LIBIBERTYDIR!= cd ${.CURDIR}/../../lib/libiberty && ${PRINTOBJDIR} +LDADD+= -L${LIBIBERTYDIR} -liberty +DPADD+= ${LIBIBERTYDIR}/libiberty.a + # Yuck, we have to run configure to generate this one... CLEANFILES+= config.h HOST_CFLAGS+= -I${.OBJDIR}