The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / infozip / 0001-configure-Remove-Check-C-compiler-type-optimization-.patch
1 From 0f5e1658c05746b17f05a1bade263cad19b37e79 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Thu, 22 Jan 2015 15:20:25 +0100
4 Subject: [PATCH 1/6] configure: Remove "Check C compiler type (optimization
5  options)"
6
7 This test force optimization to -O3
8 while it is already set in CFLAGS
9
10 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
11 ---
12  unix/configure | 98 ----------------------------------------------------------
13  1 file changed, 98 deletions(-)
14
15 diff --git a/unix/configure b/unix/configure
16 index 73ba803..4185fee 100644
17 --- a/unix/configure
18 +++ b/unix/configure
19 @@ -22,108 +22,10 @@ LFLAGS1=''
20  LFLAGS2=''
21  LN="ln -s"
22  
23 -CFLAGS_OPT=''
24 -
25  # bzip2
26  IZ_BZIP2=${3-}
27  CFLAGS_BZ=''
28  
29 -
30 -echo 'Check C compiler type (optimization options)'
31 -# Sun C?
32 -cat > conftest.c << _EOF_
33 -int main()
34 -{
35 -#ifndef __SUNPRO_C
36 -   bad code
37 -#endif
38 -   return 0;
39 -}
40 -_EOF_
41 -$CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
42 -if test $? -eq 0; then
43 -  CFLAGS_OPT='-xO3'
44 -  echo "  Sun C ($CFLAGS_OPT)"
45 -else
46 -  # Tru64 DEC/Compaq/HP C?
47 -  cat > conftest.c << _EOF_
48 -int main()
49 -{
50 -#ifndef __DECC
51 -   bad code
52 -#endif
53 -   return 0;
54 -}
55 -_EOF_
56 -  $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
57 -  if test $? -eq 0; then
58 -    CFLAGS_OPT='-O3'
59 -    echo "  DEC C ($CFLAGS_OPT)"
60 -  else
61 -    # HP-UX HP C?
62 -    cat > conftest.c << _EOF_
63 -int main()
64 -{
65 -#ifdef __GNUC__
66 -   bad code
67 -#endif
68 -#ifndef __hpux
69 -   bad code
70 -#endif
71 -   return 0;
72 -}
73 -_EOF_
74 -    $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
75 -    if test $? -eq 0; then
76 -      # HP-UX, not GCC.  Lame bundled or real ANSI compiler?
77 -      CFLAGS_OPT_TRY="+O3 +Onolimit"
78 -      $CC $CFLAGS $CFLAGS_OPT_TRY -c conftest.c 2>&1 | \
79 -       grep '(Bundled)' > /dev/null
80 -      if test $? -ne 0; then
81 -        CFLAGS_OPT="$CFLAGS_OPT_TRY"
82 -        echo "  HP-UX ANSI C ($CFLAGS_OPT)"
83 -      else
84 -        echo '  HP-UX Bundled C (no opt)'
85 -      fi
86 -    else
87 -      # GNU C?
88 -      cat > conftest.c << _EOF_
89 -int main()
90 -{
91 -#ifndef __GNUC__
92 -   bad code
93 -#endif
94 -   return 0;
95 -}
96 -_EOF_
97 -      $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
98 -      if test $? -eq 0; then
99 -        CFLAGS_OPT='-O3'
100 -        echo "  GNU C ($CFLAGS_OPT)"
101 -        # Special Mac OS X shared library "ld" option?
102 -        if test ` uname -s 2> /dev/null ` = 'Darwin'; then
103 -          lf='-Wl,-search_paths_first'
104 -          $CC $CFLAGS $lf conftest.c > /dev/null 2>/dev/null
105 -          if test $? -eq 0; then
106 -            LFLAGS2="${LFLAGS2} ${lf}"
107 -          fi
108 -          rm -f conftest
109 -        fi
110 -      else
111 -        CFLAGS_OPT='-O'
112 -        echo "  Other-unknown C ($CFLAGS_OPT)"
113 -      fi
114 -    fi
115 -  fi
116 -fi
117 -
118 -# optimization flags
119 -if test -n "${CFLAGS_OPT}"; then
120 -  CFLAGS="${CFLAGS} ${CFLAGS_OPT}"
121 -  CFLAGS_BZ="${CFLAGS_BZ} ${CFLAGS_OPT}"
122 -fi
123 -
124 -
125  # bzip2
126  
127  echo "Check bzip2 support"
128 -- 
129 1.9.3
130