diff options
Diffstat (limited to 'recipes-support/cups/cups-1.4.6/configure.patch')
-rw-r--r-- | recipes-support/cups/cups-1.4.6/configure.patch | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/recipes-support/cups/cups-1.4.6/configure.patch b/recipes-support/cups/cups-1.4.6/configure.patch new file mode 100644 index 000000000..877e8d323 --- /dev/null +++ b/recipes-support/cups/cups-1.4.6/configure.patch | |||
@@ -0,0 +1,117 @@ | |||
1 | --- cups-1.4.3/configure.orig 2010-04-08 11:14:19.092296014 +0200 | ||
2 | +++ cups-1.4.3/configure 2010-04-08 11:19:02.661417938 +0200 | ||
3 | @@ -10940,114 +10940,6 @@ | ||
4 | OPTIM="-fPIC $OPTIM" | ||
5 | fi | ||
6 | |||
7 | - # The -fstack-protector option is available with some versions of | ||
8 | - # GCC and adds "stack canaries" which detect when the return address | ||
9 | - # has been overwritten, preventing many types of exploit attacks. | ||
10 | - { echo "$as_me:$LINENO: checking if GCC supports -fstack-protector" >&5 | ||
11 | -echo $ECHO_N "checking if GCC supports -fstack-protector... $ECHO_C" >&6; } | ||
12 | - OLDCFLAGS="$CFLAGS" | ||
13 | - CFLAGS="$CFLAGS -fstack-protector" | ||
14 | - cat >conftest.$ac_ext <<_ACEOF | ||
15 | -/* confdefs.h. */ | ||
16 | -_ACEOF | ||
17 | -cat confdefs.h >>conftest.$ac_ext | ||
18 | -cat >>conftest.$ac_ext <<_ACEOF | ||
19 | -/* end confdefs.h. */ | ||
20 | - | ||
21 | -int | ||
22 | -main () | ||
23 | -{ | ||
24 | - | ||
25 | - ; | ||
26 | - return 0; | ||
27 | -} | ||
28 | -_ACEOF | ||
29 | -rm -f conftest.$ac_objext conftest$ac_exeext | ||
30 | -if { (ac_try="$ac_link" | ||
31 | -case "(($ac_try" in | ||
32 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33 | - *) ac_try_echo=$ac_try;; | ||
34 | -esac | ||
35 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
36 | - (eval "$ac_link") 2>conftest.er1 | ||
37 | - ac_status=$? | ||
38 | - grep -v '^ *+' conftest.er1 >conftest.err | ||
39 | - rm -f conftest.er1 | ||
40 | - cat conftest.err >&5 | ||
41 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
42 | - (exit $ac_status); } && { | ||
43 | - test -z "$ac_c_werror_flag" || | ||
44 | - test ! -s conftest.err | ||
45 | - } && test -s conftest$ac_exeext && | ||
46 | - $as_test_x conftest$ac_exeext; then | ||
47 | - OPTIM="$OPTIM -fstack-protector" | ||
48 | - { echo "$as_me:$LINENO: result: yes" >&5 | ||
49 | -echo "${ECHO_T}yes" >&6; } | ||
50 | -else | ||
51 | - echo "$as_me: failed program was:" >&5 | ||
52 | -sed 's/^/| /' conftest.$ac_ext >&5 | ||
53 | - | ||
54 | - { echo "$as_me:$LINENO: result: no" >&5 | ||
55 | -echo "${ECHO_T}no" >&6; } | ||
56 | -fi | ||
57 | - | ||
58 | -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
59 | - conftest$ac_exeext conftest.$ac_ext | ||
60 | - CFLAGS="$OLDCFLAGS" | ||
61 | - | ||
62 | - # The -pie option is available with some versions of GCC and adds | ||
63 | - # randomization of addresses, which avoids another class of exploits | ||
64 | - # that depend on a fixed address for common functions. | ||
65 | - { echo "$as_me:$LINENO: checking if GCC supports -pie" >&5 | ||
66 | -echo $ECHO_N "checking if GCC supports -pie... $ECHO_C" >&6; } | ||
67 | - OLDCFLAGS="$CFLAGS" | ||
68 | - CFLAGS="$CFLAGS -pie -fPIE" | ||
69 | - cat >conftest.$ac_ext <<_ACEOF | ||
70 | -/* confdefs.h. */ | ||
71 | -_ACEOF | ||
72 | -cat confdefs.h >>conftest.$ac_ext | ||
73 | -cat >>conftest.$ac_ext <<_ACEOF | ||
74 | -/* end confdefs.h. */ | ||
75 | - | ||
76 | -int | ||
77 | -main () | ||
78 | -{ | ||
79 | - | ||
80 | - ; | ||
81 | - return 0; | ||
82 | -} | ||
83 | -_ACEOF | ||
84 | -rm -f conftest.$ac_objext | ||
85 | -if { (ac_try="$ac_compile" | ||
86 | -case "(($ac_try" in | ||
87 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
88 | - *) ac_try_echo=$ac_try;; | ||
89 | -esac | ||
90 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
91 | - (eval "$ac_compile") 2>conftest.er1 | ||
92 | - ac_status=$? | ||
93 | - grep -v '^ *+' conftest.er1 >conftest.err | ||
94 | - rm -f conftest.er1 | ||
95 | - cat conftest.err >&5 | ||
96 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
97 | - (exit $ac_status); } && { | ||
98 | - test -z "$ac_c_werror_flag" || | ||
99 | - test ! -s conftest.err | ||
100 | - } && test -s conftest.$ac_objext; then | ||
101 | - PIEFLAGS="-pie -fPIE" | ||
102 | - { echo "$as_me:$LINENO: result: yes" >&5 | ||
103 | -echo "${ECHO_T}yes" >&6; } | ||
104 | -else | ||
105 | - echo "$as_me: failed program was:" >&5 | ||
106 | -sed 's/^/| /' conftest.$ac_ext >&5 | ||
107 | - | ||
108 | - { echo "$as_me:$LINENO: result: no" >&5 | ||
109 | -echo "${ECHO_T}no" >&6; } | ||
110 | -fi | ||
111 | - | ||
112 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
113 | - CFLAGS="$OLDCFLAGS" | ||
114 | - | ||
115 | if test "x$with_optim" = x; then | ||
116 | # Add useful warning options for tracking down problems... | ||
117 | OPTIM="-Wall -Wno-format-y2k $OPTIM" | ||