pkg-config/check/circular-1.pc
Dan Nicholson 6d6dd43e75 Support circular Requires loops
After the packages are parsed, pkg-config recurses through all the
required packages to generate one list. Before descending another level,
check to see if the package has already been handled and skip it. This
allows packages to require each other circularly by breaking the loop.

A test has been added resolving a two level deep circular dependency.

Freedesktop #7331
2012-10-13 08:14:35 -07:00

11 lines
258 B
PkgConfig

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/circ1
Name: Circular Requires test 1
Description: Dummy package for testing circular Requires
Version: 1.0.0
Requires: circular-2
Libs: -lcirc1
Cflags: -I${includedir}