python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / stella / 0003-configure-Add-CXXFLAGS-for-test-compilations.patch
blobc548d0825fd95c5d4888982b11b5fde8fd769c82
1 From 28f0c20302e5c64712899848cae3d0a48a9dc952 Mon Sep 17 00:00:00 2001
2 From: Vlad Zakharov <vzakhar@synopsys.com>
3 Date: Wed, 10 Aug 2016 18:02:59 +0300
4 Subject: [PATCH] configure: Add $CXXFLAGS for test compilations
6 Why we are passing only linker flags when compiling test code?
7 Loosing compiler flags leads to errors.
9 Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
10 ---
11 configure | 8 ++++----
12 1 file changed, 4 insertions(+), 4 deletions(-)
14 diff --git a/configure b/configure
15 index 0d90a4f..618fe78 100755
16 --- a/configure
17 +++ b/configure
18 @@ -63,9 +63,9 @@ cc_check() {
19 echo >> "$TMPLOG"
20 cat "$TMPC" >> "$TMPLOG"
21 echo >> "$TMPLOG"
22 - echo "$CXX $TMPC $LDFLAGS -o $TMPO$EXEEXT $@" >> "$TMPLOG"
23 + echo "$CXX $TMPC $CXXFLAGS $LDFLAGS -o $TMPO$EXEEXT $@" >> "$TMPLOG"
24 rm -f "$TMPO$EXEEXT"
25 - ( $CXX "$TMPC" $LDFLAGS -o "$TMPO$EXEEXT" "$@" ) >> "$TMPLOG" 2>&1
26 + ( $CXX "$TMPC" $CXXFLAGS $LDFLAGS -o "$TMPO$EXEEXT" "$@" ) >> "$TMPLOG" 2>&1
27 TMP="$?"
28 echo >> "$TMPLOG"
29 return "$TMP"
30 @@ -107,9 +107,9 @@ EOF
32 if test -n "$_host"; then
33 # In cross-compiling mode, we cannot run the result
34 - eval "$1 $LDFLAGS -o tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp 2> /dev/null" && rm -f tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp
35 + eval "$1 $CXXFLAGS $LDFLAGS -o tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp 2> /dev/null" && rm -f tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp
36 else
37 - eval "$1 $LDFLAGS -o tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp 2> /dev/null" && eval "./tmp_cxx_compiler 2> /dev/null" && rm -f tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp
38 + eval "$1 $CXXFLAGS $LDFLAGS -o tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp 2> /dev/null" && eval "./tmp_cxx_compiler 2> /dev/null" && rm -f tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp
42 --
43 2.5.5