Red Hat Bugzilla – Bug 803736
pkg-config --cflags libreport includs -fPIC
Last modified: 2014-02-02 17:16:22 EST
Description of problem:
I'm developing a libreport plugin for my employer, to facilitate internal crash reporting for locally developed applications. Using pkgconfig resulted in -fPIC in the CFLAGS of the executables. This is because "pkg-config --cflags libreport" includes -fPIC. It shouldn't. That flag is needed only if the consumer is building a library, which I am not.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. pkg-config --cflags libreport
The result contains -fPIC.
I should specify -fPIC myself if I am building a library, and not if I am building an executable; pkg-config shouldn't force me to use it in all cases.
Author: Nikola Pajkovsky <firstname.lastname@example.org>
Date: Thu Mar 15 16:09:17 2012 +0100
libreport.pc: rhbz#803736 - pkg-config --cflags libreport includs -fPIC
Signed-off-by: Nikola Pajkovsky <email@example.com>
abrt-2.0.9-1.fc17, libreport-2.0.10-1.fc17 has been submitted as an update for Fedora 17.
Package abrt-2.0.9-1.fc17, libreport-2.0.10-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing abrt-2.0.9-1.fc17 libreport-2.0.10-1.fc17'
as soon as you are able to, then reboot.
Please go to the following url:
then log in and leave karma (feedback).
abrt-2.0.10-1.fc17,libreport-2.0.10-2.fc17 has been submitted as an update for Fedora 17.
abrt-2.0.10-1.fc17, libreport-2.0.10-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.