aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-03-12 20:46:51 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-03-12 20:46:51 +0000
commit61e22fbe71b513fb888a1d90028c77b0235f7a9c (patch)
treee660683736a5b9dc3f10aed38bdbffd7258506fb
parentc1d00dc843e253fc9c7029fdff88535802466f58 (diff)
downloadports-61e22fbe71b513fb888a1d90028c77b0235f7a9c.tar.gz
ports-61e22fbe71b513fb888a1d90028c77b0235f7a9c.zip
multimedia/libx264: fix build on riscv64
ld: error: relocation R_RISCV_HI20 cannot be used against symbol __stack_chk_guard; recompile with -fPIC >>> defined in /lib/libc.so.7 >>> referenced by osdep.c >>> common/osdep.o:(x264_mdate)
-rw-r--r--multimedia/libx264/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/multimedia/libx264/Makefile b/multimedia/libx264/Makefile
index 209f2b602eb0..b059a7833efa 100644
--- a/multimedia/libx264/Makefile
+++ b/multimedia/libx264/Makefile
@@ -12,6 +12,7 @@ PLIST= ${.CURDIR}/pkg-plist
LIB_DEPENDS= #
USES= pathfix
+CFLAGS_riscv64=-fPIC
LDFLAGS_i386= -Wl,-znotext
LDFLAGS_armv6= -Wl,-znotext
LDFLAGS_armv7= -Wl,-znotext