aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2018-08-23 18:19:33 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2018-08-23 18:19:33 +0000
commitc91575ceec8579c03da3470a3f66e337fdd643f0 (patch)
tree574f31a52fa021ef40f84fbb58ab2d2f25aef504 /lib/libmd
parentc97e51679b8b341202b6ccba48df26733bc16645 (diff)
Notes
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 131b3cd400d2..e90569dd1782 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
PACKAGE=lib${LIB}
LIB= md
SHLIB_MAJOR= 6
@@ -114,11 +116,15 @@ 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
# Fully unroll all loops in the assembly optimized version
AFLAGS+= --defsym SKEIN_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)
ACFLAGS+= -DELF -Wa,--noexecstack