Date: Sat, 10 Oct 2020 11:37:03 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r551915 - head/security/highwayhash Message-ID: <202010101137.09ABb3Ik010502@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Sat Oct 10 11:37:02 2020 New Revision: 551915 URL: https://svnweb.freebsd.org/changeset/ports/551915 Log: security/highwayhash: fix build on powerpc64, powerpc64le and probably arm architectures Remove superflous ). Add necessary ifdefs. MFH: 2020Q4 (fix build blanket) Modified: head/security/highwayhash/Makefile Modified: head/security/highwayhash/Makefile ============================================================================== --- head/security/highwayhash/Makefile Sat Oct 10 11:02:57 2020 (r551914) +++ head/security/highwayhash/Makefile Sat Oct 10 11:37:02 2020 (r551915) @@ -13,8 +13,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= fails to compile: /usr/lib/clang/5.0.0/include/mmintrin.h:47:5: use of undeclared identifier '__builtin_ia32_emms' -BROKEN_powerpc64= fails to compile: highwayhash/arch_specific.cc:153:32: error: too few arguments to function sysctlbyname -BROKEN_powerpc64le= fails to compile: highwayhash/arch_specific.cc:153:32: error: too few arguments to function sysctlbyname ONLY_FOR_ARCHS= aarch64 amd64 powerpc powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= Assembly is implemented only for specific architectures in highwayhash/tsc_timer.h @@ -23,6 +21,15 @@ USE_GITHUB= yes GH_ACCOUNT= google GH_TAGNAME= 954e56589a7e75bad04f1063174d78f8c17a9b3a USE_LDCONFIG= yes + +.include <bsd.port.options.mk> + +.if ${ARCH:Mpowerpc*} +CXXFLAGS+= -mpower8-vector +MAKE_ENV+= HH_POWER=1 +.elif ${ARCH} == aarch64 || ${ARCH:Marmv*} +MAKE_ENV+= HH_ARM=1 +.endif post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libhighwayhash.so
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010101137.09ABb3Ik010502>