Date: Sat, 12 Mar 2022 20:49:41 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 61e22fbe71b5 - main - multimedia/libx264: fix build on riscv64 Message-ID: <202203122049.22CKnf2X065140@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=61e22fbe71b513fb888a1d90028c77b0235f7a9c commit 61e22fbe71b513fb888a1d90028c77b0235f7a9c Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-03-12 20:46:51 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-03-12 20:46:51 +0000 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) --- multimedia/libx264/Makefile | 1 + 1 file changed, 1 insertion(+) 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203122049.22CKnf2X065140>