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):