Blob Blame History Raw
From d904d586ad312b31acf5d1f011f21e40c985028c Mon Sep 17 00:00:00 2001
From: Pat Riehecky <riehecky@fnal.gov>
Date: Wed, 23 Jun 2021 08:28:33 -0500
Subject: [PATCH] Dynamic link to libjsonnet rather than static

---
 setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 8cc5ce4..b4cf2ae 100644
--- a/setup.py
+++ b/setup.py
@@ -60,7 +60,7 @@ def get_version():
 
 class BuildJsonnetExt(BuildExt):
     def run(self):
-        p = Popen(['make'] + LIB_OBJECTS, cwd=DIR)
+        p = Popen(['make', 'libs'] , cwd=DIR)
         p.wait()
         if p.returncode != 0:
             raise Exception('Could not build %s' % (', '.join(LIB_OBJECTS)))
@@ -69,7 +69,7 @@ class BuildJsonnetExt(BuildExt):
 jsonnet_ext = Extension(
     '_jsonnet',
     sources=MODULE_SOURCES,
-    extra_objects=LIB_OBJECTS,
+    extra_objects=['libjsonnet.so.0', ],
     include_dirs = ['include', 'third_party/md5', 'third_party/json'],
     language='c++'
 )
-- 
2.31.1