diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2020-06-06 00:35:41 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2020-06-06 00:35:41 +0000 |
| commit | 24ed6f550a26e4872f70064975e1fa72467fc4d6 (patch) | |
| tree | 6e60d73c80b6f11806e4c576c544855aed78c049 /lib/libmd | |
| parent | c2ea3d44bf0a86b21cab5191a190d4cc934db718 (diff) | |
Notes
Diffstat (limited to 'lib/libmd')
| -rw-r--r-- | lib/libmd/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile index 0368cfdc740e0..fda9b772ab380 100644 --- a/lib/libmd/Makefile +++ b/lib/libmd/Makefile @@ -116,18 +116,15 @@ CFLAGS+= -DSHA1_ASM SRCS+= rmd160.S CFLAGS+= -DRMD160_ASM .endif -.if exists(${MACHINE_ARCH}/skein_block_asm.s) -.if defined(XAS) || ${MK_BINUTILS_BOOTSTRAP} != "no" -AFLAGS += --strip-local-absolute +.if exists(${MACHINE_ARCH}/skein_block_asm.S) # Fully unroll all loops in the assembly optimized version -AFLAGS+= --defsym SKEIN_LOOP=0 --defsym SKEIN_USE_ASM=1792 -SRCS+= skein_block_asm.s +ACFLAGS+= -DSKEIN_LOOP=0 +SRCS+= skein_block_asm.S CFLAGS+= -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792 .else .warning as not available: not using optimized Skein asm .endif -.endif -.if exists(${MACHINE_ARCH}/sha.S) || exists(${MACHINE_ARCH}/rmd160.S) || exists(${MACHINE_ARCH}/skein_block_asm.s) +.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 |
