From 0f40105b5438f727fb61a61d668da5cd21179d2e Mon Sep 17 00:00:00 2001 From: Francis Roch Date: Fri, 26 Jul 2024 10:40:51 -0400 Subject: [PATCH] Pass ENVs in to `make install` syscall --- lib/base.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/base.rb b/lib/base.rb index 99c11b4..7945d12 100644 --- a/lib/base.rb +++ b/lib/base.rb @@ -75,7 +75,9 @@ def install_libwasmvm end def compile_and_install_xiond - system "make", "install" + ledger_enabled = ENV["LEDGER_ENABLED"] == "true" + link_statically = ENV["LINK_STATICALLY"] == "true" + system "make", "install", "LEDGER_ENABLED=#{ledger_enabled}", "LINK_STATICALLY=#{link_statically}" bin.install "#{ENV.fetch("GOPATH", nil)}/bin/xiond" end