From 18684efcc5677f75c55b1f3738c33af67f67e0db Mon Sep 17 00:00:00 2001 From: xeroxslayer Date: Mon, 12 Aug 2024 10:27:18 +0200 Subject: [PATCH] ocaml: fix for i686-musl packaging --- srcpkgs/ocaml/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/ocaml/template b/srcpkgs/ocaml/template index 3dc3de418f4d70..b0224598fa41c7 100644 --- a/srcpkgs/ocaml/template +++ b/srcpkgs/ocaml/template @@ -14,6 +14,13 @@ distfiles="https://github.com/ocaml/ocaml/archive/refs/tags/${version}.tar.gz" checksum=48554abfd530fcdaa08f23f801b699e4f74c320ddf7d0bd56b0e8c24e55fc911 nocross=yes +case "${XBPS_TARGET_MACHINE}" in + i686-musl) + nopie_files="/usr/bin/ocamlrun /usr/bin/ocamlrund + /usr/bin/ocamlruni /usr/bin/ocamlyacc" + ;; +esac + export ASPP="cc -c" post_install() {