Fix build of redland-bindings on sparc64 as it has been done for the

other instances where -fdeclspec is needed for llvm
This commit is contained in:
kmos 2022-07-03 23:09:47 +00:00
parent 2898dc5a01
commit 2332ee50cf

View File

@ -45,11 +45,17 @@ MODULES+= lang/ruby
CONFIGURE_ARGS+= --with-ruby \
--with-ruby-linking=so
MODRUBY_RUNDEP= No
CONFIGURE_ENV+= RUBY=${RUBY} CFLAGS="${CFLAGS} -fdeclspec"
CONFIGURE_ENV+= RUBY=${RUBY}
LIB_DEPENDS-ruby= ${LIB_DEPENDS} ${MODRUBY_LIB_DEPENDS}
RUN_DEPENDS-ruby= ${MODRUBY_RUN_DEPENDS}
WANTLIB-ruby= ${WANTLIB} ${MODRUBY_WANTLIB}
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mclang}
# needed for ruby 3 on llvm
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fdeclspec"
.endif
PORTHOME=${WRKDIR}
post-extract: