]> git.proxmox.com Git - mirror_qemu.git/commit - configure
configure: avoid polluting global CFLAGS with tasn1 flags
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Sep 2015 16:25:34 +0000 (17:25 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Oct 2015 18:03:08 +0000 (19:03 +0100)
commit90246037760a2a1d64da67782200b690de24cc49
tree0bb2b3570ed24bb5a57272839e4636baed382c95
parent3a661f1eabf7e8db66e28489884d9b54aacb94ea
configure: avoid polluting global CFLAGS with tasn1 flags

The previous commit

  commit 9a2fd4347c40321f5cbb4ab4220e759fcbf87d03
  Author: Daniel P. Berrange <berrange@redhat.com>
  Date:   Mon Apr 13 14:01:39 2015 +0100

    crypto: add sanity checking of TLS x509 credentials

defined new variables $TEST_LIBS and $TEST_CFLAGS and
used them in tests/Makefile to augment $LIBS and $CFLAGS.

Unfortunately this overlooks the fact that tests/Makefile
is not executed via recursive-make, it is just pulled into
the top level Makefile via an include statement. So rather
than just augmenting the compiler/linker flags for tests
it polluted the global flags.

This is thought to be behind a reported failure when
building the pixman module as a sub-module, since global
$CFLAGS are passed down to configure in pixman.

This change removes the $TEST_LIBS and $TEST_CFLAGS
replacing them with $TASN1_LIBS and $TASN1_CFLAGS,
setting only against specific objects/executables
that need them.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
configure
tests/Makefile