w32: Set SYSROOT to help finding config scripts.
[gnupg.git] / autogen.sh
index 31cfeeb..112d2ee 100755 (executable)
@@ -310,7 +310,7 @@ if [ "$myhost" = "w32" ]; then
 
     $tsdir/configure --enable-maintainer-mode ${SILENT} \
              --prefix=${w32root}  \
-             --host=${host} --build=${build} \
+             --host=${host} --build=${build} SYSROOT=${w32root} \
              ${configure_opts} ${extraoptions} "$@"
     rc=$?
     exit $rc