|
@@ -0,0 +1,140 @@
|
|
1
|
+--- a/configure
|
|
2
|
++++ b/configure
|
|
3
|
+@@ -5646,66 +5646,66 @@ done
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+-for flag in -fstack-protector; do
|
|
8
|
+- as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
|
|
9
|
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
|
|
10
|
+-$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
|
|
11
|
+-if eval \${$as_CACHEVAR+:} false; then :
|
|
12
|
+- $as_echo_n "(cached) " >&6
|
|
13
|
+-else
|
|
14
|
+-
|
|
15
|
+- ax_check_save_flags=$CFLAGS
|
|
16
|
+- CFLAGS="$CFLAGS $flag"
|
|
17
|
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
18
|
+-/* end confdefs.h. */
|
|
19
|
+-
|
|
20
|
+-int
|
|
21
|
+-main ()
|
|
22
|
+-{
|
|
23
|
+-
|
|
24
|
+- ;
|
|
25
|
+- return 0;
|
|
26
|
+-}
|
|
27
|
+-_ACEOF
|
|
28
|
+-if ac_fn_c_try_compile "$LINENO"; then :
|
|
29
|
+- eval "$as_CACHEVAR=yes"
|
|
30
|
+-else
|
|
31
|
+- eval "$as_CACHEVAR=no"
|
|
32
|
+-fi
|
|
33
|
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
34
|
+- CFLAGS=$ax_check_save_flags
|
|
35
|
+-fi
|
|
36
|
+-eval ac_res=\$$as_CACHEVAR
|
|
37
|
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
38
|
+-$as_echo "$ac_res" >&6; }
|
|
39
|
+-if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
|
|
40
|
+- if ${CFLAGS+:} false; then :
|
|
41
|
+- case " $CFLAGS " in
|
|
42
|
+- *" $flag "*)
|
|
43
|
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
|
|
44
|
+- (: CFLAGS already contains $flag) 2>&5
|
|
45
|
+- ac_status=$?
|
|
46
|
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
47
|
+- test $ac_status = 0; }
|
|
48
|
+- ;;
|
|
49
|
+- *)
|
|
50
|
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
|
|
51
|
+- (: CFLAGS="$CFLAGS $flag") 2>&5
|
|
52
|
+- ac_status=$?
|
|
53
|
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
54
|
+- test $ac_status = 0; }
|
|
55
|
+- CFLAGS="$CFLAGS $flag"
|
|
56
|
+- ;;
|
|
57
|
+- esac
|
|
58
|
+-else
|
|
59
|
+- CFLAGS="$flag"
|
|
60
|
+-fi
|
|
61
|
+-
|
|
62
|
+-else
|
|
63
|
+- :
|
|
64
|
+-fi
|
|
65
|
+-
|
|
66
|
+-done
|
|
67
|
++#for flag in -fstack-protector; do
|
|
68
|
++# as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
|
|
69
|
++#{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
|
|
70
|
++#$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
|
|
71
|
++#if eval \${$as_CACHEVAR+:} false; then :
|
|
72
|
++# $as_echo_n "(cached) " >&6
|
|
73
|
++#else
|
|
74
|
++#
|
|
75
|
++# ax_check_save_flags=$CFLAGS
|
|
76
|
++# CFLAGS="$CFLAGS $flag"
|
|
77
|
++# cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
78
|
++#/* end confdefs.h. */
|
|
79
|
++
|
|
80
|
++#int
|
|
81
|
++#main ()
|
|
82
|
++#{
|
|
83
|
++#
|
|
84
|
++# ;
|
|
85
|
++# return 0;
|
|
86
|
++#}
|
|
87
|
++#_ACEOF
|
|
88
|
++#if ac_fn_c_try_compile "$LINENO"; then :
|
|
89
|
++# eval "$as_CACHEVAR=yes"
|
|
90
|
++#else
|
|
91
|
++# eval "$as_CACHEVAR=no"
|
|
92
|
++#fi
|
|
93
|
++#rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
94
|
++# CFLAGS=$ax_check_save_flags
|
|
95
|
++#fi
|
|
96
|
++#eval ac_res=\$$as_CACHEVAR
|
|
97
|
++# { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
98
|
++#$as_echo "$ac_res" >&6; }
|
|
99
|
++#if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
|
|
100
|
++# if ${CFLAGS+:} false; then :
|
|
101
|
++# case " $CFLAGS " in
|
|
102
|
++# *" $flag "*)
|
|
103
|
++# { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
|
|
104
|
++# (: CFLAGS already contains $flag) 2>&5
|
|
105
|
++# ac_status=$?
|
|
106
|
++# $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
107
|
++# test $ac_status = 0; }
|
|
108
|
++# ;;
|
|
109
|
++# *)
|
|
110
|
++# { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
|
|
111
|
++# (: CFLAGS="$CFLAGS $flag") 2>&5
|
|
112
|
++# ac_status=$?
|
|
113
|
++# $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
114
|
++# test $ac_status = 0; }
|
|
115
|
++# CFLAGS="$CFLAGS $flag"
|
|
116
|
++# ;;
|
|
117
|
++# esac
|
|
118
|
++#else
|
|
119
|
++# CFLAGS="$flag"
|
|
120
|
++#fi
|
|
121
|
++#
|
|
122
|
++#else
|
|
123
|
++# :
|
|
124
|
++#fi
|
|
125
|
++#
|
|
126
|
++#done
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+--- a/configure.ac
|
|
131
|
++++ b/configure.ac
|
|
132
|
+@@ -71,7 +71,7 @@ AX_APPEND_COMPILE_FLAGS([-Wformat=2])
|
|
133
|
+ AX_APPEND_COMPILE_FLAGS([-Wconversion])
|
|
134
|
+ AX_APPEND_COMPILE_FLAGS([-Wno-long-long])
|
|
135
|
+ AX_APPEND_COMPILE_FLAGS([-Wno-deprecated-declarations])
|
|
136
|
+-AX_APPEND_COMPILE_FLAGS([-fstack-protector])
|
|
137
|
++#AX_APPEND_COMPILE_FLAGS([-fstack-protector])
|
|
138
|
+ AX_APPEND_COMPILE_FLAGS([-fPIE])
|
|
139
|
+ AX_APPEND_COMPILE_FLAGS([-D_FORTIFY_SOURCE=2])
|
|
140
|
+ AX_APPEND_LINK_FLAGS([-fPIE -pie])
|