diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2018-08-20 10:39:48 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2018-08-20 10:39:48 +0000 |
| commit | 078018e0ac7f389525fdcdabe3080fb73bc61827 (patch) | |
| tree | e791985a87e76401f33d6691bfca8f75cbc60937 /lib/libmd/Makefile | |
| parent | 958dc017a7391616a2b89f1177878a09a3f2a51b (diff) | |
Notes
Diffstat (limited to 'lib/libmd/Makefile')
| -rw-r--r-- | lib/libmd/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile index 2fc24d90043d1..131b3cd400d26 100644 --- a/lib/libmd/Makefile +++ b/lib/libmd/Makefile @@ -98,6 +98,13 @@ CFLAGS+= -DSKEIN_LOOP=995 .PATH: ${.CURDIR}/${MACHINE_ARCH} ${SRCTOP}/sys/crypto/sha2 .PATH: ${SRCTOP}/sys/crypto/skein ${SRCTOP}/sys/crypto/skein/${MACHINE_ARCH} +USE_ASM_SOURCES?=1 +.if defined(BOOTSTRAPPING) +# Don't build ASM sources when bootstrapping to avoid toolchain dependencies +USE_ASM_SOURCES:=0 +.endif + +.if ${USE_ASM_SOURCES} != 0 .if exists(${MACHINE_ARCH}/sha.S) SRCS+= sha.S CFLAGS+= -DSHA1_ASM @@ -116,6 +123,7 @@ CFLAGS+= -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace w .if exists(${MACHINE_ARCH}/sha.S) || exists(${MACHINE_ARCH}/rmd160.S) || exists(${MACHINE_ARCH}/skein_block_asm.s) ACFLAGS+= -DELF -Wa,--noexecstack .endif +.endif # ${USE_ASM_SOURCES} != 0 md4hl.c: mdXhl.c (echo '#define LENGTH 16'; \ |
