summaryrefslogtreecommitdiffstats
path: root/lib/csu
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-04-09 06:38:32 +0000
committerdim <dim@FreeBSD.org>2015-04-09 06:38:32 +0000
commit2da35800ba74197e3c32cfb7335da62b036ad920 (patch)
tree68f89963760e6dd4e7158a835f278ded8c8696aa /lib/csu
parent0aa481cad3a84b410a9897e52b36dfb14d91936c (diff)
downloadFreeBSD-src-2da35800ba74197e3c32cfb7335da62b036ad920.zip
FreeBSD-src-2da35800ba74197e3c32cfb7335da62b036ad920.tar.gz
MFC r280980:
Ensure the cross assembler, linker and objcopy are used for the build32 stage, just like for the regular world stage. Reviewed by: rodrigc, imp, bapt, emaste Differential Revision: https://reviews.freebsd.org/D2187
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/i386-elf/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csu/i386-elf/Makefile b/lib/csu/i386-elf/Makefile
index 286c15c..f26db15 100644
--- a/lib/csu/i386-elf/Makefile
+++ b/lib/csu/i386-elf/Makefile
@@ -35,7 +35,7 @@ crt1_c.o: crt1_c.s
crt1.o: crt1_c.o crt1_s.o
${LD} ${LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o
- objcopy --localize-symbol _start1 crt1.o
+ ${OBJCOPY} --localize-symbol _start1 crt1.o
Scrt1_c.s: crt1_c.c
${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1_c.c
@@ -46,6 +46,6 @@ Scrt1_c.o: Scrt1_c.s
Scrt1.o: Scrt1_c.o crt1_s.o
${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o
- objcopy --localize-symbol _start1 Scrt1.o
+ ${OBJCOPY} --localize-symbol _start1 Scrt1.o
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud