Fix GNU objdump build under WITH_PIE

Explicitly specified bare .a libraries need ${PIE_SUFFIX}.

Reported by:	David E. Cross, on twitter
This commit is contained in:
Ed Maste 2019-03-25 01:06:29 +00:00
parent 876d02f135
commit bce37ebc34

View File

@ -10,10 +10,10 @@ CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${GNURELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
DPADD= ${GNURELTOP}/libbinutils/libbinutils.a
DPADD+= ${GNURELTOP}/libopcodes/libopcodes.a
DPADD+= ${GNURELTOP}/libbfd/libbfd.a
DPADD+= ${GNURELTOP}/libiberty/libiberty.a
DPADD= ${GNURELTOP}/libbinutils/libbinutils${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libopcodes/libopcodes${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libbfd/libbfd${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libiberty/libiberty${PIE_SUFFIX}.a
LDADD= ${DPADD}
.include <bsd.prog.mk>