Windows fixes. ihse-cflags-rewrite-branch
authorihse
Mon, 26 Feb 2018 23:32:43 +0100
branchihse-cflags-rewrite-branch
changeset 56189 4fde3036c652
parent 56188 321c18a6b256
child 56190 6cc0bda0fe3f
Windows fixes.
make/autoconf/flags-cflags.m4
--- a/make/autoconf/flags-cflags.m4	Mon Feb 26 22:04:09 2018 +0100
+++ b/make/autoconf/flags-cflags.m4	Mon Feb 26 23:32:43 2018 +0100
@@ -393,18 +393,6 @@
 
 AC_DEFUN([FLAGS_SETUP_CFLAGS],
 [
-  # FIXME: How to handle this?
-  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
-    # silence copyright notice and other headers.
-    COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
-
-    if test "x$DEBUG_LEVEL" != xrelease; then
-      if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
-        JVM_CFLAGS="$JVM_CFLAGS -homeparams"
-      fi
-    fi
-  fi
-
   ### CFLAGS
 
   FLAGS_SETUP_CFLAGS_HELPER
@@ -503,6 +491,15 @@
       # so for debug we build with '-qpic=large -bbigtoc'.
       DEBUG_CFLAGS_JVM="-qpic=large"
     fi
+
+    if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
+      if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
+        # NOTE: This is probably redundant; -homeparams is default on
+        # non-release builds.
+        DEBUG_CFLAGS_JVM="-homeparams"
+      fi
+    fi
+
   fi
 
   if test "x$DEBUG_LEVEL" != xrelease; then
@@ -573,7 +570,7 @@
         -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno"
   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
     TOOLCHAIN_CFLAGS_JVM="-nologo -MD -MP"
-    TOOLCHAIN_CFLAGS_JDK="-MD -Zc:wchar_t-"
+    TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:wchar_t-"
   fi
 
   # CFLAGS WARNINGS STUFF
@@ -807,6 +804,12 @@
   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
     if test "x$FLAGS_CPU" = xx86; then
       $1_CFLAGS_CPU_JVM="-arch:IA32"
+    elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
+      if test "x$DEBUG_LEVEL" != xrelease; then
+        # NOTE: This is probably redundant; -homeparams is default on
+        # non-release builds.
+        $1_CFLAGS_CPU_JVM="-homeparams"
+      fi
     fi
   fi