git: 3c4b28b0561f - main - science/svmlight: fix build on 13.0+

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 29 Oct 2021 18:07:16 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3c4b28b0561f63e7cbf9033d3910186e88f420e2

commit 3c4b28b0561f63e7cbf9033d3910186e88f420e2
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-10-29 18:01:10 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-10-29 18:01:10 +0000

    science/svmlight: fix build on 13.0+
    
    cc -O2 -pipe  -fPIC -fstack-protector-strong -fno-strict-aliasing  svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o -o svm_learn -L. -lm
    ld: error: duplicate symbol: verbosity
    >>> defined at svm_common.c
    >>>            svm_common.o:(verbosity)
    >>> defined at svm_hideo.c
    >>>            svm_hideo.o:(.bss+0x38)
    cc: error: linker command failed with exit code 1 (use -v to see invocation)
---
 science/svmlight/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/science/svmlight/Makefile b/science/svmlight/Makefile
index 61d674ce3b35..80dea0bfebf3 100644
--- a/science/svmlight/Makefile
+++ b/science/svmlight/Makefile
@@ -19,7 +19,7 @@ LICENSE_PERMS=	# none
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Implementation of Support Vector Machines (SVMs) in C
 
-CFLAGS+=	-fPIC
+CFLAGS+=	-fPIC -fcommon
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LFLAGS="${CFLAGS}"
 NO_WRKSUBDIR=	yes
 USES=		gmake