| Summary: | man-page of pkg-config misleading | ||
|---|---|---|---|
| Product: | pkg-config | Reporter: | joerg.strebel |
| Component: | src | Assignee: | pkg-config |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | medium | CC: | nicholson |
| Version: | unspecified | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
Thanks for the report. Fixed in commit 7f4afa02. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
The man page says: "It is typically used to compile and link against one or more libraries. Here is a typical usage scenario in a Makefile: program: program.c cc program.c $(pkg-config --cflags --libs gnomeui)" This makefile code snippet will not work. You either need backquotes or the $(shell...) command to execute pkg-config and substitute its output in its place in the Makefile. I use pkg-config version 0.28