summaryrefslogtreecommitdiff
path: root/package/stunnel/patches/patch-configure_ac
blob: eb45959954100e505628c98ccd4f12f5e042aa56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- stunnel-5.01.orig/configure.ac	2014-03-09 23:14:33.000000000 +0100
+++ stunnel-5.01/configure.ac	2014-05-28 11:55:04.000000000 +0200
@@ -44,31 +44,6 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([int main
     ])
 CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
 
-AC_MSG_CHECKING([whether $CC accepts -fstack-protector])
-valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -fstack-protector"
-valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -fstack-protector"
-AC_LINK_IFELSE([AC_LANG_SOURCE([int main() {return 0;}])],
-    [
-        AC_MSG_RESULT([yes])
-        AC_SUBST([stunnel_CFLAGS], ["$stunnel_CFLAGS -fstack-protector"])
-        AC_SUBST([stunnel_LDFLAGF], ["$stunnel_LDFLAGF -fstack-protector"])
-    ], [
-        AC_MSG_RESULT([no])
-    ])
-CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
-
-AC_MSG_CHECKING([whether $CC accepts -pie])
-valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -fPIE"
-valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -pie -fPIE"
-AC_LINK_IFELSE([AC_LANG_SOURCE([int main() {return 0;}])],
-    [
-        AC_MSG_RESULT([yes])
-        AC_SUBST([stunnel_CFLAGS], ["$stunnel_CFLAGS -fPIE"])
-        AC_SUBST([stunnel_LDFLAGF], ["$stunnel_LDFLAGF -pie -fPIE"])
-    ], [
-        AC_MSG_RESULT([no])
-    ])
-CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
 
 AC_MSG_CHECKING([whether $CC accepts -Wall])
 valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Wall"