From 3539a8affe3725db4bbc76cbccff78d02c9a0d4b Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 17 Apr 2018 12:08:06 +0200 Subject: [PATCH] =?UTF-8?q?Specify=20the=20LIB=5FSUFFIX=C2=A0for=20CTPP2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiwixbuild/dependencies.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kiwixbuild/dependencies.py b/kiwixbuild/dependencies.py index e341c2d..0f109ff 100644 --- a/kiwixbuild/dependencies.py +++ b/kiwixbuild/dependencies.py @@ -147,7 +147,14 @@ class CTPP2(Dependency): ] class Builder(CMakeBuilder): - configure_option = "-DMD5_SUPPORT=OFF -DICONV_SUPPORT=OFF" + @property + def configure_option(self): + libprefix = self.buildEnv.libprefix + options = "-DMD5_SUPPORT=OFF -DICONV_SUPPORT=OFF" + if libprefix.startswith('lib'): + libprefix = libprefix[3:] + options += " -DLIB_SUFFIX={}".format(libprefix) + return options class CTPP2C(CTPP2):