[nginx] Configure: fixed building with Sun C if CFLAGS set (tick...

Maxim Dounin mdounin at mdounin.ru
Wed Sep 4 17:37:08 UTC 2013


details:   http://hg.nginx.org/nginx/rev/945aa9c7f282
branches:  
changeset: 5366:945aa9c7f282
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Wed Sep 04 21:17:03 2013 +0400
description:
Configure: fixed building with Sun C if CFLAGS set (ticket #65).

diffstat:

 auto/cc/conf |  23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diffs (33 lines):

diff --git a/auto/cc/conf b/auto/cc/conf
--- a/auto/cc/conf
+++ b/auto/cc/conf
@@ -43,6 +43,29 @@ if test -n "$CFLAGS"; then
             ngx_include_opt="-I"
         ;;
 
+        sunc)
+
+            case "$NGX_MACHINE" in
+
+                i86pc)
+                    NGX_AUX=" src/os/unix/ngx_sunpro_x86.il"
+                ;;
+
+                sun4u | sun4v)
+                    NGX_AUX=" src/os/unix/ngx_sunpro_sparc64.il"
+                ;;
+
+            esac
+
+            case $CPU in
+
+                amd64)
+                    NGX_AUX=" src/os/unix/ngx_sunpro_amd64.il"
+                ;;
+
+            esac
+        ;;
+
     esac
 
 else



More information about the nginx-devel mailing list