Skip to content

Add a link argument that is missing from the pkgconfig .pc file #607

Answered by rgommers
oscarbenjamin asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a simple way to edit the meson.build files (or otherwise) that is more or less equivalent to adding the -lflint argument to flint.pc?

Something like this using declare_dependency should work (untested, but I have code like this somewhere):

flint_dep = dependency('flint')
if flint_dep.version().version_compare('<3.1')
    flint_dep = declare_dependency(
        dependencies: flint_dep,
        link_args: ['-lflint']),
    )
endif

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@eli-schwartz
Comment options

@oscarbenjamin
Comment options

@oscarbenjamin
Comment options

@oscarbenjamin
Comment options

@eli-schwartz
Comment options

Answer selected by oscarbenjamin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants