From b5f2b7d36b99d714baa20f96a476df2e15e7ebf9 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 15 Jul 2009 13:47:58 +0000 Subject: [PATCH] fixup compile on XP. git-svn-id: file:///svn/unbound/trunk@1725 be551aaa-1e26-0410-a405-d3ace91eadb9 --- configure | 4 +++- configure.ac | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 956f9235d..34a8f86e7 100755 --- a/configure +++ b/configure @@ -18702,7 +18702,9 @@ if test x_$enable_static_exe = x_yes; then staticexe="-static" if test "$on_mingw" = yes; then staticexe="-all-static" - LIBS="$LIBS -lgdi32 -lz" + if test "`uname`" = "Linux"; then + LIBS="$LIBS -lgdi32 -lz" + fi fi fi diff --git a/configure.ac b/configure.ac index 9b103e92a..b935b82ed 100644 --- a/configure.ac +++ b/configure.ac @@ -448,7 +448,10 @@ if test x_$enable_static_exe = x_yes; then staticexe="-static" if test "$on_mingw" = yes; then staticexe="-all-static" - LIBS="$LIBS -lgdi32 -lz" + # for static crosscompile, include gdi32 and zlib here. + if test "`uname`" = "Linux"; then + LIBS="$LIBS -lgdi32 -lz" + fi fi fi