pkg-config/check/check-circular-requires
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

8 lines
100 B
Bash
Executable file

#! /bin/sh
set -e
. ${srcdir}/common
RESULT="-lcirc1 -lcirc2 -lcirc3"
run_test --libs circular-1