host rc setup for 64mode32 expeccoNET_1_6_0_0
authorMichael Beyl <mb@exept.de>
Tue, 03 May 2011 18:12:59 +0200
changeset 1126 9a9ad236db9c
parent 1125 709b972d5855
child 1127 601cd02e5a4b
host rc setup for 64mode32
host.rc
--- a/host.rc	Mon Mar 07 16:20:44 2011 +0100
+++ b/host.rc	Tue May 03 18:12:59 2011 +0200
@@ -156,6 +156,18 @@
     ].
     Compiler ccCompilationOptions:'-O'.
 
+    (conf includesString:'amd64_mode32') ifTrue:[
+	(ObjectFileLoader linkArgs includesString:'-m32') ifFalse:[
+	    ObjectFileLoader linkArgs:(ObjectFileLoader linkArgs , ' -m32 -m elf_i386').
+	].
+	(Compiler ccCompilationOptions includesString:'-m32') ifFalse:[
+	    Compiler ccCompilationOptions:(Compiler ccCompilationOptions , ' -m32').
+	].
+	(Compiler stcCompilationDefines includesString:'-D__amd64_mode32__') ifFalse:[
+	    Compiler stcCompilationDefines:(Compiler stcCompilationDefines , ' -D__amd64_mode32__').
+	].
+    ].
+
     includes := ''.
     incDir := Smalltalk getSystemFileName:'include'.
     incDir notNil ifTrue:[