[Groonga-commit] groonga/groonga at cd95f58 [master] groonga-httpd: support cross compile build

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Nov 23 17:21:07 JST 2014


Kouhei Sutou	2014-11-23 17:21:07 +0900 (Sun, 23 Nov 2014)

  New Revision: cd95f580f3cf74c3a5e36ed21f4b41ca674d8756
  https://github.com/groonga/groonga/commit/cd95f580f3cf74c3a5e36ed21f4b41ca674d8756

  Message:
    groonga-httpd: support cross compile build
    
    It's not buildable yet.

  Modified files:
    src/httpd/configure

  Modified: src/httpd/configure (+10 -0)
===================================================================
--- src/httpd/configure    2014-11-23 17:20:39 +0900 (eb0f42b)
+++ src/httpd/configure    2014-11-23 17:21:07 +0900 (f65353b)
@@ -5,11 +5,16 @@ set -u
 
 srcdir="."
 builddir="."
+host=""
+
 for argument in "$@"; do
   case "$argument" in
     --srcdir=*)
       srcdir="$(echo "${argument}" | sed -e 's/--srcdir=//')"
       ;;
+    --host=*)
+      host="$(echo "${argument}" | sed -e 's/--host=//')"
+      ;;
   esac
 done
 
@@ -49,6 +54,11 @@ if [ "${abs_top_srcdir}/src/httpd" != "$(pwd)" ]; then
 fi
 
 configure_args=""
+if [ -n "${host}" ]; then
+  configure_args="${configure_args} --crossbuild=win32"
+  configure_args="${configure_args} --with-cc=${host}-gcc"
+  configure_args="${configure_args} --with-cpp=${host}-c++"
+fi
 if [ "${GROONGA_HTTPD_DEBUG}" = "yes" ]; then
   configure_args="${configure_args} --with-debug"
 fi
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index