Skip to content

Commit

Permalink
textproc/turboxsl: work around duplicate symbol issue
Browse files Browse the repository at this point in the history
Add -fcommon to CFLAGS to work around a duplicate symbol issue.
This fixes the build on FreeBSD 13+.
While we are at it, enable on arm64 (builds fine).

Approved by:	portmgr (build fix blanket)
  • Loading branch information
clausecker committed Apr 18, 2023
1 parent ba66f05 commit 0861f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions textproc/turboxsl/Makefile
Expand Up @@ -10,9 +10,7 @@ WWW= https://github.com/Litres/turboxsl
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE

BROKEN_FreeBSD_13= ld: error: duplicate symbol: xsl_a_NaN
BROKEN_FreeBSD_14= ld: error: duplicate symbol: xsl_a_NaN
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le sparc64
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le sparc64

LIB_DEPENDS= libck.so:devel/concurrencykit \
libmemcached.so:databases/libmemcached
Expand All @@ -21,7 +19,9 @@ USES= autoreconf libtool pathfix pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= Litres

GNU_CONFIGURE= yes
CFLAGS+= -fcommon
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
Expand Down

0 comments on commit 0861f30

Please sign in to comment.