From c6a3d30bec5e70d0357c0e1d63549d4d6cf6f243 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 17 May 2021 14:37:30 +0200 Subject: [PATCH] libhsmd: Always use gcc to configure and compile --- contrib/libhsmd_python/setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/libhsmd_python/setup.py b/contrib/libhsmd_python/setup.py index be24b24cd..c965f4607 100644 --- a/contrib/libhsmd_python/setup.py +++ b/contrib/libhsmd_python/setup.py @@ -19,7 +19,7 @@ class ClExtension(Extension): # The directory we compile external depencies is architecture specific. external_target = pathlib.Path("external") / subprocess.check_output( - ["clang", "-dumpmachine"] + ["gcc", "-dumpmachine"] ).strip().decode("ASCII") @@ -46,7 +46,12 @@ class build_ext(build_ext_orig): cwd=cwd, ) - subprocess.check_call(["./configure"], cwd=cwd / "src") + subprocess.check_call([ + "./configure", + "--disable-developer", + "--disable-valgrind", + "CC=gcc" + ], cwd=cwd / "src") # Selectively build some targets we rely on later subprocess.check_call(["make", "lightningd/lightning_hsmd"], cwd=srcdir)