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: ------------------ -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/home/groups/devel/run/apache/include/apr-1 ------------------ 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. -- Bojan
