devel/jna: fix build on powerpc64 elfv2

Use GCC:
     [exec] /wrkdirs/usr/ports/devel/jna/work/jna-5.5.0/native/libffi/src/powerpc/linux64.S:215:2: error: changed section flags for .eh_frame, expected: 0x2
This commit is contained in:
Piotr Kubaj 2020-10-30 11:33:48 +00:00
parent 8c4b158dda
commit 79daaa5acc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553684

View File

@ -38,6 +38,12 @@ OPTIONS_DEFINE= DOCS
ANT_ARCH= ${ARCH:S/amd64/x86-64/:S/i386/x86/:C/powerpc64.*/ppc64/}
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64
USE_GCC= any
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/native/Makefile