[gridengine] Add mingw notes
Orion Poplawski
orion at fedoraproject.org
Wed Mar 21 22:03:53 UTC 2012
commit 01478b10bf157a0f17e5b0d389fb19c86203115a
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Wed Mar 21 16:03:50 2012 -0600
Add mingw notes
README.mingw | 6 ++++
gridengine-mingw.patch | 64 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/README.mingw b/README.mingw
new file mode 100644
index 0000000..7582861
--- /dev/null
+++ b/README.mingw
@@ -0,0 +1,6 @@
+I took a look at compiling gridengine with mingw. Current stumbling block is
+that mingw32-w32api does not have pdh.h/libpdh.a (pdh.dll) from the Windows SDK.
+
+The patch gridengine-mingw.patch adds a -mingw32 flag for aimk to use for the
+compile step after dependencies have been generated. (Strange, but you need
+native tools to generate the deps)
diff --git a/gridengine-mingw.patch b/gridengine-mingw.patch
new file mode 100644
index 0000000..de47b6b
--- /dev/null
+++ b/gridengine-mingw.patch
@@ -0,0 +1,64 @@
+diff -up GE2011.11/source/aimk.mingw GE2011.11/source/aimk
+--- GE2011.11/source/aimk.mingw 2012-03-21 15:04:40.985356138 -0600
++++ GE2011.11/source/aimk 2012-03-21 15:35:53.436004441 -0600
+@@ -46,7 +46,7 @@ unsetenv AIMK_INSURE AIMK_TARGET_BITS ai
+
+ set COMPILE_ARCH = ""
+ set COMPILE_DIR = ""
+-set buildarch = UNKNOWN
++set buildarch = mingw32
+ set WINCC = ""
+ set WINCFLAGS = ""
+ set WINLFLAGS = ""
+@@ -177,6 +177,7 @@ usage:
+ echo " -kerberos -> enable kerberos authentication"
+ echo " -man -> generate man pages"
+ echo " -mankv -> generate man pages checked out with '-kv' flag"
++ echo " -mingw32 -> compile with mingw32"
+ echo " -mo -> generate the message catalogues (Solaris only)"
+ echo " -no-core -> don't compile the core system"
+ echo " -no-java -> don't compile Java[TM] class files"
+@@ -643,6 +644,10 @@ while ($#argv >= 1 && $?found)
+ set BUILDMAN = 1
+ set KVMAN = 1
+ breaksw
++ case "-mingw32":
++ set buildarch = mingw32
++ set BUILDARCH = `scripts/compilearch -b $buildarch`
++ breaksw
+ case "-mo"
+ echo "BUILDARCH=$BUILDARCH"
+ if ( $BUILDARCH == sol-sparc || $BUILDARCH == sol-sparc64 ) then
+@@ -1763,6 +1768,17 @@ case CYGWIN_X86:
+
+ breaksw
+
++case MINGW32:
++ set WINCC = i686-pc-mingw32-gcc
++ set HWLOC = 0
++ set MAKEHWLOC = 0
++ set DEPEND_FLAGS = "$CFLAGS"
++ set RM = "rm -f"
++ # Default build targets for WIN32_X86 for which we have seperate make files
++ set MAKEWINGRIDLIB = 1
++ set MAKEWINGRIDAPP = 1
++ breaksw
++
+ case WIN32_X86:
+ setenv LD_LIBRARY_PATH /usr/lib/x86:/usr/local/lib
+ set CC = gcc
+diff -up GE2011.11/source/libs/comm/cl_data_types.h.mingw GE2011.11/source/libs/comm/cl_data_types.h
+diff -up GE2011.11/source/scripts/compilearch.mingw GE2011.11/source/scripts/compilearch
+--- GE2011.11/source/scripts/compilearch.mingw 2012-03-21 15:04:40.657367886 -0600
++++ GE2011.11/source/scripts/compilearch 2012-03-21 15:04:41.013355134 -0600
+@@ -228,6 +228,10 @@ case $buildarch in
+ BUILDARCH=LINUXX64
+ TARGET_BITS=TARGET_64BIT
+ ;;
++ mingw32)
++ BUILDARCH=MINGW32
++ TARGET_BITS=TARGET_32BIT
++ ;;
+ necsx4)
+ BUILDARCH=NECSX4
+ TARGET_BITS=TARGET_64BIT
More information about the scm-commits
mailing list