summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2016-05-11 20:06:23 +0000
committerjkim <jkim@FreeBSD.org>2016-05-11 20:06:23 +0000
commit36da606d583b1722be9e1b39b1b7045bc4b70d02 (patch)
treed6816898563fb3c44187384d3d07fc5ba223f45a /secure
parent7ff185b500df69e450e0cb30b7aff063c2686ebe (diff)
downloadFreeBSD-src-36da606d583b1722be9e1b39b1b7045bc4b70d02.zip
FreeBSD-src-36da606d583b1722be9e1b39b1b7045bc4b70d02.tar.gz
Set CC environment variable for Perl scripts. This is for detecting
assembler/compiler capabilities, e.g., AVX instructions.
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/libcrypto/Makefile.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/secure/lib/libcrypto/Makefile.asm b/secure/lib/libcrypto/Makefile.asm
index 344d088..4cbdead 100644
--- a/secure/lib/libcrypto/Makefile.asm
+++ b/secure/lib/libcrypto/Makefile.asm
@@ -66,10 +66,10 @@ CLEANFILES= ${ASM} ${SHA_ASM:S/$/.s/}
.pl.S:
( echo '# $$'FreeBSD'$$' ;\
echo '# Do not modify. This file is auto-generated from ${.IMPSRC:T}.' ;\
- perl ${.IMPSRC} elf ) > ${.TARGET}
+ env CC=cc perl ${.IMPSRC} elf ) > ${.TARGET}
${SHA_TMP}: ${SHA_SRC}
- perl ${.ALLSRC} elf ${.TARGET}
+ env CC=cc perl ${.ALLSRC} elf ${.TARGET}
.for s in ${SHA_ASM}
${s}.S: ${s}.s
@@ -146,9 +146,9 @@ CLEANFILES= ${ASM}
( echo '# $$'FreeBSD'$$' ;\
echo '# Do not modify. This file is auto-generated from ${.IMPSRC:T}.' ;\
echo '#ifdef PIC' ;\
- perl ${PERLPATH} ${.IMPSRC} elf ${CFLAGS} -fpic -DPIC ;\
+ env CC=cc perl ${PERLPATH} ${.IMPSRC} elf ${CFLAGS} -fpic -DPIC ;\
echo '#else' ;\
- perl ${PERLPATH} ${.IMPSRC} elf ${CFLAGS} ;\
+ env CC=cc perl ${PERLPATH} ${.IMPSRC} elf ${CFLAGS} ;\
echo '#endif') |\
sed -E 's|(\.file[[:blank:]]+)".*"|\1"${.TARGET}"|' > ${.TARGET}
.endif
OpenPOWER on IntegriCloud