jdk/makefiles/GensrcX11Wrappers.gmk
changeset 22593 938340719ac2
parent 17046 72254abdba83
--- a/jdk/makefiles/GensrcX11Wrappers.gmk	Thu Sep 05 10:50:40 2013 -0700
+++ b/jdk/makefiles/GensrcX11Wrappers.gmk	Tue Sep 17 14:48:14 2013 +0200
@@ -88,7 +88,7 @@
 
     # use -m32/-m64 only if the compiler supports it
     ifeq ($(COMPILER_SUPPORTS_TARGET_BITS_FLAG),true)
-    MEMORY_MODEL_FLAG="-m$*"
+    MEMORY_MODEL_FLAG="$(COMPILER_TARGET_BITS_FLAG)$*"
     endif
 
     # Compile the C code into an executable.