wrong output for pkg-config with some libraries

Bug #853126 reported by alduc1
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pkg-config (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On Oneiric Ubuntu 11.10 (64b and 32b).
For libraries gtk+-2.0, gtk+-3.0, gio-2.0 for example, with the commands "pkg-config --libs" and "pkg-config --cflags" the first string printed is -pthread. That involves errors during linking process.

Ex:
>> pkg-config --libs gio-2.0
     -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
>> pkg-config --cflags gio-2.0
     -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

Correct output for --libs should be -lpthread if needed (?).
For --cflags "-pthread" is incorrect but probably ignored by gcc and the compilation process is ok.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pkg-config (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.