changeset 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 d51551cb3a85
children 493d42562733
files gen/linker.cpp gen/toobj.cpp
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gen/linker.cpp	Thu Jan 22 21:46:40 2009 +0100
+++ b/gen/linker.cpp	Fri Jan 23 10:12:57 2009 +0100
@@ -306,6 +306,10 @@
         break;
     }
 
+    //FIXME: enforce 64 bit
+    if (global.params.is64bit)
+        args.push_back("-m64");
+
     // print link command?
     if (!global.params.quiet || global.params.verbose)
     {
--- 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.