Bug 98011 - man-page of pkg-config misleading
Summary: man-page of pkg-config misleading
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: pkg-config
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-02 07:44 UTC by joerg.strebel
Modified: 2017-03-19 17:48 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.