readonly TARGET = "SPARC32_LINUX" % code generation target
readonly WORD_SIZE = "32BITS" % { "32BITS" or "64BITS" }
readonly GNU_PLATFORM = "sparc-linux-gnu"

%
% add s switch to ar and remove need for ranlib
%
readonly AR_AND_RANLIB_ARE_ONE = TRUE

if TRUE % defined("M3_BOOTSTRAP")
 %
 % -fPIC seems to be causing problems, and isn't needed for booting.
 % We get MUCH further without -fPIC. -fPIC fails the first line RTLinker__InitRuntime.
 % -m32 seems to cause stuff at the end of the assembly that as 2.18 warns about.
 %
 readonly m3back_flags = "-quiet -gstabs+ -munaligned-doubles"
 readonly SYSTEM_CC = "gcc -gstabs+ -m32 -munaligned-doubles" % C compiler
else
 readonly m3back_flags = "-quiet -gstabs+ -m32 -fPIC -munaligned-doubles"
 readonly SYSTEM_CC = "gcc -gstabs+ -m32 -fPIC -munaligned-doubles" % C compiler
end

readonly SYSTEM_ASM = "as -32" % Assembler

%
% newer platforms never needed these workarounds for
% bootstrapping with older builds
%
readonly proc GetGcWrapFlags() is return "" end
readonly proc FixM3GcDefs(x) is return x end
readonly proc GetM3BackFlag(x) is return x end

include("Unix.common")
