Skip to content

Commit

Permalink
Fix GNU objdump build under WITH_PIE
Browse files Browse the repository at this point in the history
Explicitly specified bare .a libraries need ${PIE_SUFFIX}.

Reported by:	David E. Cross, on twitter
  • Loading branch information
emaste committed Mar 25, 2019
1 parent 876d02f commit bce37eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gnu/usr.bin/binutils/objdump/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit bce37eb

Please sign in to comment.