Skip to content

Use Requires.private in pkg-config field

Duncan Macleod requested to merge duncanmmacleod/gstlal:requires.private into master

This MR modifies all relevant pkg-config files to use Requires.private instead of `Requires, so that downstream packages don't automatically overlink against gstlal's requirements.

The impact of this change is well seen in the following before/after example:

Before
$ pkg-config --libs gstlal
-L/home/duncan/opt/mambaforge/envs/py310/lib -lgstlal -lgstlaltags -lgstlaltypes -lgsl -lgslcblas -lm -lcblas -lm -lgstaudio-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -llal
After
$ pkg-config --libs gstlal
-L/home/duncan/opt/mambaforge/envs/py310/lib -lgstlal -lgstlaltags -lgstlaltypes

The latter output is what is desired for most users (in my experience).

Merge request reports