Skip to content

Commit

Permalink
japanese/sj3-server: work around duplicate symbol issue
Browse files Browse the repository at this point in the history
Add -fcommon to CFLAGS to enable a build on recent clang/gcc.
This fixes the build on FreeBSD 13+.

Approved by:	portmgr (build fix blanket)
  • Loading branch information
clausecker committed Apr 17, 2023
1 parent 81fea4f commit ae458da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions japanese/sj3-server/Makefile
@@ -1,6 +1,6 @@
PORTNAME= sj3
PORTVERSION= 2.0.1.20
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= japanese
MASTER_SITES= LOCAL/nork
PKGNAMESUFFIX= -server
Expand All @@ -15,17 +15,14 @@ COMMENT= Japanese input method, binary part
LICENSE= MIT
LICENSE_FILE= ${FILESDIR}/COPYING

BROKEN_FreeBSD_13= ld: error: duplicate symbol: hs_point
BROKEN_FreeBSD_14= ld: error: duplicate symbol: hs_point

LIB_DEPENDS= libsj3lib.so:japanese/sj3-lib

USES= imake
USE_RC_SUBR= sj3
PLIST_SUB= USERS=${USERS} GROUPS=${GROUPS}
SUB_FILES= sj3_freebsd.tmpl
SUB_LIST= DESTDIR=${DESTDIR}
CFLAGS+= -Wno-return-type
CFLAGS+= -Wno-return-type -fcommon
USERS= _sj3
GROUPS= _sj3
PORTDOCS= Nihongo.ps.Z hinsi.ms makedict.ms sj3lib.ms sj3serv.ms
Expand Down

0 comments on commit ae458da

Please sign in to comment.