]> git.notmuchmail.org Git - notmuch/commit
configure: removed $zlib_(cflags|ldflags) from compat code build
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 5 Mar 2017 21:03:27 +0000 (23:03 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 9 Mar 2017 14:20:01 +0000 (10:20 -0400)
commitb7763c94e23bbb7d27e995e7a721f31b2ba8cb13
tree1029cab40e8f5b78cf1257466ad7d6271d915781
parent3071fc04fbf3c43f18291cb8e61b566cdf85d762
configure: removed $zlib_(cflags|ldflags) from compat code build

When pkg-config does not find configure, a compat version of the
zlib.pc is created. In creation of that configure attempted to
read values of $zlib_cflags and $zlib_ldflags. In the usual case
those were undefined, and with `set -a` now in the beginning of
configure, configure broke.

Even if $zlib_cflags and $zlib_ldflags had values which were used
to create zlib.pc, the values were overwritten (with static content)
a few lines later in next pkg-config --cflags and --libs run. These
values would not be different and probably useless -- the following
boild would probably fail.

But instead of using those, CPATH and LIBRARY_PATH environment
variables can be used successfully (both while configuring and
building).
configure