Apply WITH_PIE changes to other binutils components

Followon to r345489, explicitly specified bare .a libraries need
${PIE_SUFFIX} (although these still built).

MFC with:	r345489
This commit is contained in:
Ed Maste 2019-03-25 01:18:26 +00:00
parent bce37ebc34
commit 07c9bf2a44
3 changed files with 8 additions and 8 deletions

View File

@ -95,9 +95,9 @@ CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_CPUARCH}-freebsd
NO_SHARED?= yes
.endif
DPADD= ${GNURELTOP}/libbfd/libbfd.a
DPADD+= ${GNURELTOP}/libiberty/libiberty.a
DPADD+= ${GNURELTOP}/libopcodes/libopcodes.a
DPADD= ${GNURELTOP}/libbfd/libbfd${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libiberty/libiberty${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libopcodes/libopcodes${PIE_SUFFIX}.a
LDADD= ${DPADD}
.include <bsd.prog.mk>

View File

@ -51,8 +51,8 @@ CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
.if ${MK_SHARED_TOOLCHAIN} == "no"
NO_SHARED?= yes
.endif
DPADD= ${GNURELTOP}/libbfd/libbfd.a
DPADD+= ${GNURELTOP}/libiberty/libiberty.a
DPADD= ${GNURELTOP}/libbfd/libbfd${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libiberty/libiberty${PIE_SUFFIX}.a
LDADD= ${DPADD}
CLEANDIRS+= ldscripts
CLEANFILES+= ldemul-list.h stringify.sed

View File

@ -9,9 +9,9 @@ SRCS= objcopy.c not-strip.c
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${GNURELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd
DPADD= ${GNURELTOP}/libbinutils/libbinutils.a
DPADD+= ${GNURELTOP}/libbfd/libbfd.a
DPADD+= ${GNURELTOP}/libiberty/libiberty.a
DPADD= ${GNURELTOP}/libbinutils/libbinutils${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libbfd/libbfd${PIE_SUFFIX}.a
DPADD+= ${GNURELTOP}/libiberty/libiberty${PIE_SUFFIX}.a
LDADD= ${DPADD}
.include <bsd.prog.mk>