diff options
Diffstat (limited to 'auto/cc/gcc')
-rw-r--r-- | auto/cc/gcc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/auto/cc/gcc b/auto/cc/gcc index 6f1a953a6..05970722c 100644 --- a/auto/cc/gcc +++ b/auto/cc/gcc @@ -34,9 +34,9 @@ if [ $ngx_found = yes ]; then fi -case "$NGX_PLATFORM" in +case "$NGX_MACHINE" in - *:sun4u) + sun4u | sparc ) # "-mcpu=v9" enables the "casa" assembler instruction CFLAGS="$CFLAGS -mcpu=v9" ;; @@ -80,6 +80,13 @@ case $CPU in CPU_OPT="-march=opteron" ;; + sparc32) + # build 32-bit UltraSparc binary + CPU_OPT="-m32" + CORE_LINK="$CORE_LINK -m32" + CC_AUX_FLAGS="$CC_AUX_FLAGS -m32" + ;; + sparc64) # build 64-bit UltraSparc binary CPU_OPT="-m64" |