Skip to content

Configurator needs to access opam variables and pass custom flags to pkg-config #1492

@rgrinberg

Description

@rgrinberg

I've found this shell script for configuration in the wild:

export PKG_CONFIG_PATH="$(opam config var lib)/pkgconfig"
flags="$(pkg-config --static ocaml-freestanding --cflags)"
echo "($flags)"

Porting this to configurator is a problem because it's not possible to access opam variables and pass --static to pkg-config. We should support these features.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions