]>
Commit | Line | Data |
---|---|---|
7d9b5837 JB |
1 | qemu-xen-traditional/configure: define _GNU_SOURCE for NPTL defs |
2 | qemu-xen/configure: use -O2 for tests to eliminate fortify warnings (-Werror is in effect sometimes) | |
7d9b5837 JB |
3 | --- xen-4.2.0/tools/qemu-xen-traditional/configure.orig 2012-09-06 18:05:30.000000000 +0200 |
4 | +++ xen-4.2.0/tools/qemu-xen-traditional/configure 2012-10-27 08:16:21.702515768 +0200 | |
5 | @@ -738,10 +738,10 @@ | |
6 | #endif | |
7 | } | |
8 | EOF | |
9 | ||
10 | -if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then | |
11 | +if $cc $ARCH_CFLAGS -D_GNU_SOURCE -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then | |
12 | : | |
13 | else | |
14 | nptl="no" | |
15 | fi | |
16 | ||
17 | @@ -788,7 +790,7 @@ | |
18 | fi | |
19 | ||
20 | # static link with sdl ? | |
21 | - if test "$sdl" = "yes" ; then | |
22 | + if test "$static" = "yes" -a "$sdl" = "yes" ; then | |
23 | aa="no" | |
24 | `$sdl_config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` && aa="yes" | |
25 | sdl_static_libs=`$sdl_config --static-libs 2>/dev/null` | |
bb96a194 MM |
26 | --- xen-4.4.0/tools/qemu-xen/configure~ 2014-02-05 16:59:14.000000000 +0000 |
27 | +++ xen-4.4.0/tools/qemu-xen/configure 2014-03-12 13:53:34.947877721 +0000 | |
28 | @@ -342,10 +342,6 @@ | |
695d15a0 JB |
29 | QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS" |
30 | QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS" | |
bb96a194 | 31 | QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include" |
695d15a0 JB |
32 | -if test "$debug_info" = "yes"; then |
33 | - CFLAGS="-g $CFLAGS" | |
34 | - LDFLAGS="-g $LDFLAGS" | |
35 | -fi | |
7d9b5837 | 36 | |
695d15a0 JB |
37 | # make source path absolute |
38 | source_path=`cd "$source_path"; pwd` | |
bb96a194 MM |
39 | @@ -3450,7 +3446,7 @@ |
40 | CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS" | |
41 | LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS" | |
42 | elif test "$debug" = "no" ; then | |
695d15a0 JB |
43 | - CFLAGS="-O2 -D_FORTIFY_SOURCE=2 $CFLAGS" |
44 | + CFLAGS="-O2 $CFLAGS" | |
45 | fi | |
7d9b5837 | 46 | |
bb96a194 | 47 |