diff --git a/conanfile.py b/conanfile.py index e07729e..463a7aa 100644 --- a/conanfile.py +++ b/conanfile.py @@ -108,11 +108,14 @@ def build(self): else: autotools = AutoToolsBuildEnvironment(self) self.run("autoconf") + sharedargs = (['--enable-shared', '--disable-static'] + if self.options.shared else + ['--enable-static', '--disable-shared']) autotools.configure(args=[ "--with-out-ext=" + ",".join(without_ext), "--disable-install-rdoc", "--without-gmp", - ]) + ] + sharedargs) autotools.make() autotools.install()