diff gen/toobj.cpp @ 902:893d72ab95d0

Add -m64 switch to gcc calls on 64-bit platforms.
author Christian Kamm <kamm incasoftware de>
date Fri, 23 Jan 2009 10:12:57 +0100
parents 5a03f3f74615
children c76f74d09fb1
line wrap: on
line diff
--- a/gen/toobj.cpp	Thu Jan 22 21:46:40 2009 +0100
+++ b/gen/toobj.cpp	Fri Jan 23 10:12:57 2009 +0100
@@ -359,6 +359,10 @@
     //FIXME: only use this if needed?
     args.push_back("-fpic");
 
+    //FIXME: enforce 64 bit
+    if (global.params.is64bit)
+        args.push_back("-m64");
+
     // Now that "args" owns all the std::strings for the arguments, call the c_str
     // method to get the underlying string array.  We do this game so that the
     // std::string array is guaranteed to outlive the const char* array.