Bug 98011

Summary: man-page of pkg-config misleading
Product: pkg-config Reporter: joerg.strebel
Component: srcAssignee: 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:

Description joerg.strebel 2016-10-02 07:44:49 UTC
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
Comment 1 Dan Nicholson 2017-03-19 17:48:38 UTC
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.