Skip to content

Commit

Permalink
Properly handle static/shared option on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
elizagamedev committed Sep 16, 2018
1 parent 510eef5 commit 300b10c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 300b10c

Please sign in to comment.