# HG changeset patch # User Christian Kamm # Date 1232701977 -3600 # Node ID 893d72ab95d0e897aa12a4931b86e3a4cc090bd5 # Parent d51551cb3a85957e9b4b8e5b312bf98ecbe647b9 Add -m64 switch to gcc calls on 64-bit platforms. diff -r d51551cb3a85 -r 893d72ab95d0 gen/linker.cpp --- 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) { diff -r d51551cb3a85 -r 893d72ab95d0 gen/toobj.cpp --- 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.