git: cdc38f6c39a5 - main - devel/ocaml-opam: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jan 2025 21:46:54 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=cdc38f6c39a54e01133001e6adcc2b4f5c176511 commit cdc38f6c39a54e01133001e6adcc2b4f5c176511 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-01-16 10:33:12 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-01-17 21:45:09 +0000 devel/ocaml-opam: fix build on powerpc Same issue as lang/ocaml: ld: error: relocation R_PPC_ADDR16_HA cannot be used against symbol 'caml_program'; recompile with -fPIC >>> defined in power_libasmrunpic.o >>> referenced by power_libasmrunpic.o:(caml_start_program) --- devel/ocaml-opam/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devel/ocaml-opam/Makefile b/devel/ocaml-opam/Makefile index 2d53465b00cf..d7fae542c336 100644 --- a/devel/ocaml-opam/Makefile +++ b/devel/ocaml-opam/Makefile @@ -46,6 +46,9 @@ LDFLAGS+= -Wl,-z,notext RUN_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils USE_BINUTILS= yes .endif +.if ${ARCH} == powerpc +LLD_UNSAFE= yes +.endif pre-configure: @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} compiler)