Skip to content

Commit

Permalink
Use cc.find_library
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Mar 25, 2024
1 parent df3d923 commit 20bfdfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ mpfr_dep = dependency('mpfr')
flint_dep = dependency('flint')

flint_dep = dependency('flint')

if flint_dep.version().version_compare('<3.1')
flint_dep = declare_dependency(
dependencies: flint_dep,
link_args: ['-lflint'],
)
# This is a workaround for the fact that the flint.pc file in flint < 3.1
# is missing -lflint. This is fixed in flint 3.1.0.
flint_dep = cc.find_library('flint')
endif

pyflint_deps = [dep_py, gmp_dep, mpfr_dep, flint_dep]
Expand Down

0 comments on commit 20bfdfa

Please sign in to comment.