b2sum: use SSE2.

This commit is contained in:
Christian Neukirchen 2014-12-11 21:12:06 +01:00
parent 9b58e0f5d3
commit e6bde890f0

View file

@ -1,7 +1,7 @@
# Template file for 'b2sum'
pkgname=b2sum
version=20140114
revision=1
revision=2
wrksrc="blake2_code_${version}/b2sum"
build_style=gnu-makefile
hostmakedepends="unzip"
@ -15,7 +15,7 @@ checksum=456e6ac99ed4661ef8502526b0927f790699d232fbaf5b0ddbe3a64cc8d612e9
do_build() {
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) _dir=../sse;;
i686*|x86_64*) _dir=../sse; CFLAGS+=" -msse2";;
*) _dir=../ref;;
esac
${CC} -std=c99 ${CFLAGS} -o b2sum *.c ${_dir}/blake*.c -I${_dir} ${LDFLAGS}