Enable workaround for building on powerpc64.

Autoconf reports that HAVE_ASM_BSR is true (1).  However, it's a false
positive.

I do not have enough knowledge of autoconf to fix this problem correctly,
so fix src/config.h in post-configure.  Patches welcome.

A proper fix will most likely also fix the build on other tier-2 archs,
but I have not taken the time to test that yet.

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-06-21 11:15:08 +00:00
parent 54406dd2d7
commit 6ec44c3ad2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504785

View file

@ -19,7 +19,6 @@ BROKEN_aarch64= invokes x86 assembler
BROKEN_armv6= invokes x86 assembler
BROKEN_armv7= invokes x86 assembler
BROKEN_mips64= invokes x86 assembler
BROKEN_powerpc64= invokes x86 assembler
BROKEN_sparc64= invokes x86 assembler
USES= gmake perl5
@ -31,10 +30,17 @@ OPTIONS_DEFINE= SIMD
SIMD_CONFIGURE_OFF= --disable-builtin-popcount --disable-simd
.include <bsd.port.pre.mk>
# shebang_fix operates during patch.
# These scripts are created during configure.
post-configure:
${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|g' \
${WRKSRC}/Makefile ${WRKSRC}/util/*.pl
.if ${ARCH:Mpowerpc*}
# XXX MCL unknown why this shows up as true. knowledge of autoconf needed.
${REINPLACE_CMD} -e 's|#define HAVE_ASM_BSR 1||' \
${WRKSRC}/src/config.h
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>