svn commit: r299480 - head/secure/lib/libcrypto

Jung-uk Kim jkim at FreeBSD.org
Wed May 11 20:06:24 UTC 2016


Author: jkim
Date: Wed May 11 20:06:23 2016
New Revision: 299480
URL: https://svnweb.freebsd.org/changeset/base/299480

Log:
  Set CC environment variable for Perl scripts.  This is for detecting
  assembler/compiler capabilities, e.g., AVX instructions.

Modified:
  head/secure/lib/libcrypto/Makefile.asm

Modified: head/secure/lib/libcrypto/Makefile.asm
==============================================================================
--- head/secure/lib/libcrypto/Makefile.asm	Wed May 11 19:59:05 2016	(r299479)
+++ head/secure/lib/libcrypto/Makefile.asm	Wed May 11 20:06:23 2016	(r299480)
@@ -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


More information about the svn-src-all mailing list