mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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).
This commit is contained in:
parent
3071fc04fb
commit
b7763c94e2
1 changed files with 1 additions and 2 deletions
3
configure
vendored
3
configure
vendored
|
@ -493,8 +493,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! pkg-config --exists zlib; then
|
if ! pkg-config --exists zlib; then
|
||||||
${CC} ${zlib_cflags} -o compat/gen_zlib_pc \
|
${CC} -o compat/gen_zlib_pc "$srcdir"/compat/gen_zlib_pc.c >/dev/null 2>&1 &&
|
||||||
"$srcdir"/compat/gen_zlib_pc.c ${zlib_ldflags} > /dev/null 2>&1 &&
|
|
||||||
compat/gen_zlib_pc > compat/zlib.pc &&
|
compat/gen_zlib_pc > compat/zlib.pc &&
|
||||||
PKG_CONFIG_PATH="$PKG_CONFIG_PATH":compat &&
|
PKG_CONFIG_PATH="$PKG_CONFIG_PATH":compat &&
|
||||||
export PKG_CONFIG_PATH
|
export PKG_CONFIG_PATH
|
||||||
|
|
Loading…
Reference in a new issue