Bug 803736 - pkg-config --cflags libreport includs -fPIC
Summary: pkg-config --cflags libreport includs -fPIC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libreport
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Nikola Pajkovsky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-15 14:30 UTC by Jerry James
Modified: 2014-02-02 22:16 UTC (History)
10 users (show)

Fixed In Version: abrt-2.0.10-1.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-18 23:00:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2012-03-15 14:30:25 UTC
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):
libreport-devel-2.0.8-6.fc17.x86_64

How reproducible:
Always

Steps to Reproduce:
1. pkg-config --cflags libreport
2.
3.
  
Actual results:
The result contains -fPIC.

Expected results:
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.

Additional info:

Comment 1 Nikola Pajkovsky 2012-03-15 15:08:26 UTC
commit 0bc8469662ba6742e4a01bcfb2245b06332231bc
Author: Nikola Pajkovsky <npajkovs>
Date:   Thu Mar 15 16:09:17 2012 +0100

    libreport.pc: rhbz#803736 - pkg-config --cflags libreport includs -fPIC
    
    Signed-off-by: Nikola Pajkovsky <npajkovs>

Comment 2 Fedora Update System 2012-03-27 10:18:21 UTC
abrt-2.0.9-1.fc17, libreport-2.0.10-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/abrt-2.0.9-1.fc17,libreport-2.0.10-1.fc17

Comment 3 Fedora Update System 2012-03-28 05:59:11 UTC
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:
https://admin.fedoraproject.org/updates/FEDORA-2012-4804/abrt-2.0.9-1.fc17,libreport-2.0.10-1.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-04-02 13:34:18 UTC
abrt-2.0.10-1.fc17,libreport-2.0.10-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/abrt-2.0.10-1.fc17,libreport-2.0.10-2.fc17

Comment 5 Fedora Update System 2012-04-18 23:00:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.