git: 377a8969a2b7 - main - security/ipv6toolkit: fix build on riscv64
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Jun 20 23:14:31 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=377a8969a2b7f586b3bbbe046193567bf570a60d
commit 377a8969a2b7f586b3bbbe046193567bf570a60d
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-20 23:14:16 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-20 23:14:16 +0000
security/ipv6toolkit: fix build on riscv64
ld: error: can't create dynamic relocation R_RISCV_HI20 against symbol: .LCPI64_0 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /wrkdirs/usr/ports/security/ipv6toolkit/work/ipv6toolkit-v2.0/libipv6/libipv6.a(libipv6.o)
>>> referenced by libipv6.c
>>> libipv6.o:(time_diff_ms) in archive /wrkdirs/usr/ports/security/ipv6toolkit/work/ipv6toolkit-v2.0/libipv6/libipv6.a
---
security/ipv6toolkit/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/security/ipv6toolkit/Makefile b/security/ipv6toolkit/Makefile
index e2969e85033d..1c884a432a8e 100644
--- a/security/ipv6toolkit/Makefile
+++ b/security/ipv6toolkit/Makefile
@@ -17,6 +17,8 @@ SUB_FILES= BSDMakefile Makefile Makefile.lib
MAKEFILE= BSDMakefile
PORTDOCS= README.TXT CHANGES.TXT CREDITS.TXT
+CFLAGS_riscv64= -fPIC
+
PROGDIRS= addr6 flow6 frag6 icmp6 jumbo6 na6 ni6 ns6 path6 ra6 rd6 rs6 \
scan6 tcp6 udp6
LIBDIRS= libipv6
More information about the dev-commits-ports-all
mailing list