Remove -m32/-m64 args from makefiles.#346
Remove -m32/-m64 args from makefiles.#346waywardmonkeys wants to merge 1 commit intoInterlisp:masterfrom
Conversation
We detect machinetype and build for the native CPU type as it is, so we don't need to repeat this here in each makefile.
|
I'm adding That would be easier if there weren't 32 / 64 bit flags being given, especially as I don't think they should be needed. |
nbriggs
left a comment
There was a problem hiding this comment.
Generally, I agree with this. I have a problem, though, in what ends up actually happening -- on my 10.11 (El Capitan) mac, the compiler default is 64-bit but it supports 32-bit as well and we have bin/machinetype reporting "386" rather than x86_64. On the SPARC Solaris system, bin/machinetype reports "sparc" (not sparc64, or sparcv9), and 3 different C compilers with 7 different versions -- some of them default to 32-bit (sparcv8 instruction set), some default to 64-bit (sparcv9 instruction set).
I'd like to be able to more easily pick the compiler and options that get used. It would also be great to have a consistent method to add extra (or change existing) options -- adding -Wxxx or -fxxx, change the -On and so on.
|
on my mac mini I can do arch -x86_64 ./makeright x and compile maiko x86 binaries into darwin.x86_64/lde and ldex |
|
Yes, I can do
because all the executables used to create a 32-bit lde are in fact 64-bit executables, and for most other systems it's more like the |
|
On macOS, it is usually |
We detect machinetype and build for the native CPU type as it
is, so we don't need to repeat this here in each makefile.