Mercurial > hg > nginx-quic
annotate auto/lib/sha1/make @ 3741:0f9b2d285bfc
fix segfault, the bug has been introduced in r3738
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 Aug 2010 18:27:56 +0000 |
parents | ecdc41bf2047 |
children | d620f497c50f |
rev | line source |
---|---|
653 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
5 case "$NGX_CC_NAME" in | |
6 | |
7 msvc*) | |
8 ngx_makefile=makefile.msvc | |
9 ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC SHA1_ASM=$SHA1_ASM" | |
2838
ecdc41bf2047
backout r2833: CURDIR was set to Unix style path
Igor Sysoev <igor@sysoev.ru>
parents:
2832
diff
changeset
|
10 ngx_sha1="SHA1=\"$SHA1\"" |
653 | 11 ;; |
12 | |
13 owc*) | |
14 ngx_makefile=makefile.owc | |
15 ngx_opt="CPU_OPT=\"$CPU_OPT\"" | |
2838
ecdc41bf2047
backout r2833: CURDIR was set to Unix style path
Igor Sysoev <igor@sysoev.ru>
parents:
2832
diff
changeset
|
16 ngx_sha1=`echo SHA1=\"$SHA1\" | sed -e "s/\//$ngx_regex_dirsep/g"` |
653 | 17 ;; |
18 | |
19 bcc) | |
20 ngx_makefile=makefile.bcc | |
21 ngx_opt="-DCPU_OPT=\"$CPU_OPT\" -DSHA1_ASM=$SHA1_ASM" | |
2838
ecdc41bf2047
backout r2833: CURDIR was set to Unix style path
Igor Sysoev <igor@sysoev.ru>
parents:
2832
diff
changeset
|
22 ngx_sha1=`echo \-DSHA1=\"$SHA1\" | sed -e "s/\//$ngx_regex_dirsep/g"` |
653 | 23 ;; |
24 | |
25 esac | |
26 | |
27 | |
28 done=NO | |
29 | |
30 | |
31 case "$NGX_PLATFORM" in | |
32 | |
33 win32) | |
34 cat << END >> $NGX_MAKEFILE | |
35 | |
36 `echo "$SHA1/sha1.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"` | |
2838
ecdc41bf2047
backout r2833: CURDIR was set to Unix style path
Igor Sysoev <igor@sysoev.ru>
parents:
2832
diff
changeset
|
37 \$(MAKE) -f auto/lib/sha1/$ngx_makefile $ngx_opt $ngx_sha1 |
653 | 38 |
39 END | |
40 | |
41 done=YES | |
42 ;; | |
43 | |
44 SunOS:*:i86pc) | |
45 if [ $SHA1_ASM = YES ]; then | |
46 | |
47 cat << END >> $NGX_MAKEFILE | |
48 | |
49 $SHA1/libsha.a: $NGX_MAKEFILE | |
50 cd $SHA1 \\ | |
51 && \$(MAKE) CFLAGS="$SHA1_OPT -DSOL -DSHA1_ASM -DL_ENDIAN" \\ | |
52 CC="\$(CC)" CPP="\$(CPP)" \\ | |
53 SHA_ASM_OBJ=asm/sx86-sol.o clean libsha.a | |
54 | |
55 END | |
56 | |
57 done=YES | |
58 fi | |
59 ;; | |
60 | |
61 # FreeBSD: i386 | |
62 # Linux: i686 | |
63 | |
64 *:i386 | *:i686) | |
65 if [ $SHA1_ASM = YES ]; then | |
66 | |
67 cat << END >> $NGX_MAKEFILE | |
68 | |
69 $SHA1/libsha.a: $NGX_MAKEFILE | |
70 cd $SHA1 \\ | |
71 && \$(MAKE) CFLAGS="$SHA1_OPT -DELF -DSHA1_ASM -DL_ENDIAN" \\ | |
72 CC="\$(CC)" CPP="\$(CPP)" \\ | |
73 SHA_ASM_OBJ=asm/sx86-elf.o clean libsha.a | |
74 | |
75 END | |
76 | |
77 done=YES | |
78 fi | |
79 ;; | |
80 | |
81 esac | |
82 | |
83 | |
84 if [ $done = NO ]; then | |
85 | |
86 cat << END >> $NGX_MAKEFILE | |
87 | |
88 $SHA1/libsha.a: $NGX_MAKEFILE | |
89 cd $SHA1 \\ | |
90 && \$(MAKE) CFLAGS="$SHA1_OPT" \\ | |
91 CC="\$(CC)" SHA_ASM_OBJ= clean libsha.a | |
92 | |
93 END | |
94 | |
95 fi |