On Wed, Dec 06, 2017 at 10:06:22AM -0600, William A Rowe Jr wrote:
> They trust the compiler to do the right things, so there is no special
> sauce added to apr-config. Respective build flags land in
> /usr/lib/apr-1/build/
> /usr/lib64/apr-1/build/

We do have to hack /usr/bin/apr-1-config to do:

CPPFLAGS=`pkg-config --variable=CPPFLAGS apr-1`

because that file has to be identical across both 32- and 64-bit builds. 
Otherwise we get RPM file conflicts when trying to install both i686 and 
x86_64 apr-devel at the same time.  

Because there is no way to actually thread the choice of arch through 
pkg-config and the myriad /usr/bin/*-config files, this stuff is a gross 
hack, isn't really widely used in practice, and I don't see much point 
in trying to solve "properly".  It's quite likely 32-bit arches will all 
be dead by the time we managed it :)

Regards, Joe

Reply via email to