aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2012-10-15 16:53:24 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2012-10-15 17:58:50 -0400
commitf8285a110b170da3ce98fd7772640c66b830ea70 (patch)
treef3bda069a4126a9526d32f79b3f25d5707bea15b /configure.in
parent78c98e171672bbda8229378b4bf69df120232c84 (diff)
build: give env optim flags precedence
Fixes builds like: 'CFLAGS=-O3 ./configure'
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index bd2f6f4edf..ce836ff4bf 100644
--- a/configure.in
+++ b/configure.in
@@ -717,8 +717,8 @@ if test "$use_optimizations" = "yes"; then
CXXFLAGS="$CXXFLAGS"
CFLAGS="$CFLAGS"
else
- CXXFLAGS="$CXXFLAGS -O2"
- CFLAGS="$CFLAGS -O2"
+ CXXFLAGS="-O2 $CXXFLAGS"
+ CFLAGS="-O2 $CFLAGS"
fi
else
final_message="$final_message\n Optimization:\tNo"