From c1b81bc55afcd1beb8f14ded1c9c61173b8e8a34 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Mon, 29 Mar 2021 22:46:14 +0200 Subject: [PATCH 1/2] Don't require opam for the bindings compilation If opam is not present just use the PKG_CONFIG_PATH specified in the environment. --- lib/bindings/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bindings/Makefile b/lib/bindings/Makefile index 4e413c04..67c7bdc3 100644 --- a/lib/bindings/Makefile +++ b/lib/bindings/Makefile @@ -1,4 +1,6 @@ -PKG_CONFIG_PATH := $(shell opam config var prefix)/lib/pkgconfig +ifneq (, $(shell command -v opam)) + PKG_CONFIG_PATH ?= $(shell opam config var prefix)/lib/pkgconfig +endif CC ?= cc FREESTANDING_CFLAGS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags ocaml-freestanding) From 9c47891ea7a2649a778981edc0b961dc4b31eb99 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Mon, 15 Nov 2021 17:31:58 +0100 Subject: [PATCH 2/2] Update lib/bindings/Makefile --- lib/bindings/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bindings/Makefile b/lib/bindings/Makefile index 67c7bdc3..c5b12715 100644 --- a/lib/bindings/Makefile +++ b/lib/bindings/Makefile @@ -1,5 +1,5 @@ ifneq (, $(shell command -v opam)) - PKG_CONFIG_PATH ?= $(shell opam config var prefix)/lib/pkgconfig + PKG_CONFIG_PATH ?= $(shell opam var prefix)/lib/pkgconfig endif CC ?= cc