Skip to content

Commit

Permalink
pbc: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 6, 2023
1 parent 269e7ba commit 5d61b3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/pbc/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from conan import ConanFile
from conan.tools.apple import XCRun, to_apple_arch
from conan.tools.build import cross_building
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rm, rmdir, chdir
from conan.tools.gnu import Autotools, AutotoolsToolchain, AutotoolsDeps
from conan.tools.layout import basic_layout
Expand Down Expand Up @@ -66,8 +67,10 @@ def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)

def generate(self):
env = VirtualBuildEnv(self)
env.generate()
tc = AutotoolsToolchain(self)
tc.extra_defines += ["LEX=flex"]
tc.configure_args.append("LEX=flex")
# No idea why this is necessary, but if you don't set CC this way, then
# configure complains that it can't find gmp.
if cross_building(self) and self.settings.compiler == "apple-clang":
Expand Down

0 comments on commit 5d61b3b

Please sign in to comment.