# HG changeset patch # User Deepa Srinivasan <[EMAIL PROTECTED]> # Date 1226685276 21600 # Node ID ae59be00a22c4769a1116943ca5e07cec9154de0 # Parent 1a74ac23ff60cc2ab052072243dc4ff47faf5849 qemu: Fix incorrect zlib check error
From: Deepa Srinivasan <[EMAIL PROTECTED]> Include the CFLAGS and LDFLAGS variables in the check for zlib. When cross-compiling for PowerPC, the path for zlib headers and libraries are passed in the CFLAGS and LDFLAGS respectively. While this patch fixes only the check for zlib, this issue potentially affects other configure tests as well. Signed-off-by: Deepa Srinivasan <[EMAIL PROTECTED]> --- [diffstat] configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) [diff] diff -r 1a74ac23ff60 -r ae59be00a22c qemu/configure --- a/qemu/configure Fri Nov 14 10:53:36 2008 -0600 +++ b/qemu/configure Fri Nov 14 11:54:36 2008 -0600 @@ -798,7 +798,7 @@ cat > $TMPC << EOF #include <zlib.h> int main(void) { zlibVersion(); return 0; } EOF -if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC -lz 2> /dev/null ; then +if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $CFLAGS $LDFLAGS $TMPC -lz 2> /dev/null ; then : else echo -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html