wrong output for pkg-config with some libraries
Bug #853126 reported by
alduc1
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/
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.
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.