]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup compile on XP.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 15 Jul 2009 13:47:58 +0000 (13:47 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 15 Jul 2009 13:47:58 +0000 (13:47 +0000)
git-svn-id: file:///svn/unbound/trunk@1725 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac

index 956f9235d730c84771ce85b356371b16d1d41bd7..34a8f86e7a548d4d6bf9bb106efe33f92c0a9e8e 100755 (executable)
--- 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
 
index 9b103e92ab4abdcb9504d659b7cfbc9ee9b91384..b935b82ed3df82fc58552600f9068f37fbd2930c 100644 (file)
@@ -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