You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2009/10/11 22:23:24 UTC
DO NOT REPLY [Bug 47979] New: Installed pkg-config returns
extraneous information for 'pkg-config apr-1 --cflags'
https://issues.apache.org/bugzilla/show_bug.cgi?id=47979
Summary: Installed pkg-config returns extraneous information
for 'pkg-config apr-1 --cflags'
Product: APR
Version: 1.3.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: APR
AssignedTo: bugs@apr.apache.org
ReportedBy: rhys.ulerich@gmail.com
As reported in this thread [1], 'pkg-config apr-1 --cflags' includes extraneous
information. This has occurred since at least 1.3.6.
To reproduce:
1) Get the latest APR tarball and untar it
2) unset CFLAGS && ./configure --prefix=SOMESPOT1 && make install
3) CFLAGS="" && ./configure --prefix=SOMESPOT2 && make install
3) CFLAGS="-g -O2" && ./configure --prefix=SOMESPOT3 && make install
Observe that SOMESPOT{1,2,3}/lib/pkgconfig/apr-1.pc all improperly contain
> Cflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I${includedir}
which causes incorrect information to appear in 'pkg-config apr-1 --cflags'.
[1]
http://www.nabble.com/apr-1.3.6-incorrectly-includes-"-g--O2"-in-'pkg-config---cflags"-to24470493.html
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 47979] Installed pkg-config returns extraneous
information for 'pkg-config apr-1 --cflags'
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47979
Ruediger Pluem <rp...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2009-10-11 15:59:35 CEST ---
Just to be clear: You complain that -g -O2 show up in apr.pc when CFLAGS aren't
set or set to "", correct?
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I${includedir}
are important flags and belong there as they influence the behavior of libc
headers on Linux that will be included via the apr header files in you own
code.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 47979] Installed pkg-config returns extraneous
information for 'pkg-config apr-1 --cflags'
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47979
Rhys Ulerich <rh...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #2 from Rhys Ulerich <rh...@gmail.com> 2009-10-11 14:09:14 UTC ---
> Just to be clear: You complain that -g -O2 show up in apr.pc when
> CFLAGS aren't set or set to "", correct?
Correct. Sorry for not being clear in the bug report.
unset CFLAGS gives
> Cflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I${includedir}
which seems incorrect.
CFLAGS="" gives
> Cflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I${includedir}
like I expect, at least in 1.3.8. This behavior is correct.
CFLAGS="-g -O2" gives
> Cflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I${includedir}
like I expect. This behavior is correct.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org