apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: apr 1.3.6 incorrectly includes "-g -O2" in 'pkg-config --cflags"
Date Mon, 13 Jul 2009 23:22:44 GMT
On Mon, 2009-07-13 at 17:19 -0500, Rhys Ulerich wrote:
> These entries appear in pkg-config output because @EXTRA_CPPFLAGS@ and
> @EXTRA_CFLAGS@ are present in apr.pc.in.

How did you configure apr? I have this in my config.nice:
CFLAGS="-g -O0 -Wall -fstack-protector"; export CFLAGS
"./configure" \
"--prefix=/home/groups/devel/run/apache" \
"CFLAGS=-g -O0 -Wall -fstack-protector" \

Which then gives this when running pkg-config:

In other words, no traces of optimisation flags anywhere. Things like
_LARGEFILE64_SOURCE are important, as they may cause structures in APU
to have the wrong size, if not specified.


View raw message