lang/ruby26: fix build on 12

Use GCC9 only on head, ruby fails to build otherwise.

PR:		242630
Reported by:	lfmorrison@gmail.com
This commit is contained in:
Piotr Kubaj 2020-01-31 16:32:18 +00:00
parent a21155e8b8
commit 222d29289a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=524729

View File

@ -23,7 +23,7 @@ BUILD_DEPENDS= libffi>=0:devel/libffi
LIB_DEPENDS= libyaml.so:textproc/libyaml
RUN_DEPENDS= libffi>=0:devel/libffi
USES= autoreconf cpe ssl tar:xz
USES= autoreconf compiler cpe ssl tar:xz
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
--disable-rpath \
@ -98,7 +98,7 @@ CONFIGURE_ARGS+=--disable-dtrace
LIB_DEPENDS+= libunwind.so:devel/libunwind
.endif
.if (defined(PPC_ABI) && ${PPC_ABI} == ELFv1) || ${ARCH} == powerpc
.if (defined(PPC_ABI) && ${PPC_ABI} == ELFv1) || (${ARCH} == powerpc && ${CHOSEN_COMPILER_TYPE} == clang)
USE_GCC= yes
.endif