]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #1226: provide official 32bit binary for windows.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 27 Feb 2017 15:05:52 +0000 (15:05 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 27 Feb 2017 15:05:52 +0000 (15:05 +0000)
git-svn-id: file:///svn/unbound/trunk@4028 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
makedist.sh

index 1a2cee1e7e5295283d5ad9c2f4c7de467cec2300..24e08c95a2f8f1ab296f80d4a9ba8e00b3b69a6f 100644 (file)
@@ -1,5 +1,6 @@
 27 February 2017: Wouter
        - Fix #1227: Fix that Unbound control allows weak ciphersuits.
+       - Fix #1226: provide official 32bit binary for windows.
 
 24 February 2017: Wouter
        - include sys/time.h for new shm code on NetBSD.
index 992c16f59735eb2efd868ce032d170fc1ff8fa15..46a5263c2a0e7c7bb35367a628ea7ee57afbab76 100755 (executable)
@@ -205,7 +205,6 @@ while [ "$1" ]; do
            ;;
        "-w32")
            W64="no"
-           shift
            ;;
         "-w")
             DOWIN="yes"
@@ -324,9 +323,20 @@ if [ "$DOWIN" = "yes" ]; then
     # procedure for making unbound installer on mingw. 
     info "Creating windows dist unbound $version"
     info "Calling configure"
-    echo "$configure"' --enable-debug --enable-static-exe --disable-flto '"$* $cross_flag"
-    $configure --enable-debug --enable-static-exe --disable-flto $* $cross_flag \
+    if test "$W64" = "no"; then
+       file_flag="--with-conf-file=C:\Program Files (x86)\Unbound\service.conf"
+       file2_flag="--with-rootkey-file=C:\Program Files (x86)\Unbound\root.key"
+       file3_flag="--with-rootcert-file=C:\Program Files (x86)\Unbound\icannbundle.pem"
+       version="$version"-w32
+    fi
+    echo "$configure"' --enable-debug --enable-static-exe --disable-flto '"$* $cross_flag "$file_flag" "$file2_flag" "$file3_flag""
+    if test "$W64" = "no"; then
+        $configure --enable-debug --enable-static-exe --disable-flto $* $cross_flag "$file_flag" "$file2_flag" "$file3_flag" \
        || error_cleanup "Could not configure"
+    else
+        $configure --enable-debug --enable-static-exe --disable-flto $* $cross_flag \
+       || error_cleanup "Could not configure"
+    fi
     info "Calling make"
     make || error_cleanup "Could not make"
     info "Make complete"