Skip to content

Commit

Permalink
science/svmlight: fix build on 13.0+
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
pkubaj committed Oct 29, 2021
1 parent 297030b commit 3c4b28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion science/svmlight/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 3c4b28b

Please sign in to comment.