aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralthekiller <althekiller@svn>2010-06-08 20:33:28 +0000
committeralthekiller <althekiller@svn>2010-06-08 20:33:28 +0000
commit4ef8f5b883adf73f9f52276de67bbb75d3dc98cd (patch)
tree374fb28f42ac5abf415da41bcdf538ec372e2f9a
parent5db36527755cb50e84069d3a9efec599c5f1d5a1 (diff)
fixed: debug and optim cflags should be passed to all lib tests and crap we build.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30979 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--Makefile.include.in2
-rw-r--r--configure.in68
2 files changed, 35 insertions, 35 deletions
diff --git a/Makefile.include.in b/Makefile.include.in
index d4c1947cf3..2f734b2976 100644
--- a/Makefile.include.in
+++ b/Makefile.include.in
@@ -28,9 +28,7 @@ psdir=@psdir@
CXX=@CXX@
CC=@CC@
CXXFLAGS+=@CXXFLAGS@
-CXXFLAGS+=@DEBUG_FLAGS@
CFLAGS+=@CFLAGS@
-CFLAGS+=@DEBUG_FLAGS@
INCLUDES+=@INCLUDES@
DEFINES+= \
-D_LINUX \
diff --git a/configure.in b/configure.in
index 22c3d05053..45165771ec 100644
--- a/configure.in
+++ b/configure.in
@@ -60,6 +60,10 @@ external_libdts_disabled="== Use of external libdts disabled. =="
external_python_enabled="== Use of external python enabled. =="
external_python_disabled="== Use of external python disabled. =="
ffmpeg_vdpau_not_supported="== External ffmpeg doesn't support VDPAU. VDPAU support disabled. =="
+dashes="------------------------"
+final_message="\n XBMC Configuration:"
+final_message="\n$dashes$final_message\n$dashes"
+
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
@@ -325,6 +329,37 @@ case $host in
AC_MSG_ERROR(unsupported host ($host))
esac
AC_SUBST([ARCH])
+if test "$use_debug" = "yes"; then
+ final_message="$final_message\n Debugging:\tYes"
+ if test "$use_profiling" = "yes"; then
+ final_message="$final_message\n Profiling:\tYes"
+ DEBUG_FLAGS="-g -pg -D_DEBUG -Wall"
+ else
+ final_message="$final_message\n Profiling:\tNo"
+ DEBUG_FLAGS="-g -D_DEBUG -Wall"
+ fi
+else
+ final_message="$final_message\n Debugging:\tNo"
+ if test "$use_profiling" = "yes"; then
+ final_message="$final_message\n Profiling:\tYes"
+ DEBUG_FLAGS="-pg -DNDEBUG=1"
+ else
+ final_message="$final_message\n Profiling:\tNo"
+ DEBUG_FLAGS="-DNDEBUG=1"
+ fi
+fi
+
+CFLAGS="$CFLAGS $DEBUG_FLAGS"
+CXXFLAGS="$CXXFLAGS $DEBUG_FLAGS"
+
+if test "$use_optimizations" = "yes"; then
+ final_message="$final_message\n Optimization:\tYes"
+ CXXFLAGS="$CXXFLAGS -O2"
+ CFLAGS="$CFLAGS -O2"
+else
+ final_message="$final_message\n Optimization:\tNo"
+fi
+
# platform specific flags
if test "$host_vendor" = "apple" ; then
@@ -1001,30 +1036,6 @@ AC_CHECK_FUNCS([atexit dup2 fdatasync floor fs_stat_dev ftime ftruncate getcwd g
AC_CHECK_SIZEOF([int])
AC_CHECK_SIZEOF([size_t])
-dashes="------------------------"
-final_message="\n XBMC Configuration:"
-final_message="\n$dashes$final_message\n$dashes"
-
-if test "$use_debug" = "yes"; then
- final_message="$final_message\n Debugging:\tYes"
- if test "$use_profiling" = "yes"; then
- final_message="$final_message\n Profiling:\tYes"
- DEBUG_FLAGS="-g -pg -D_DEBUG -Wall"
- else
- final_message="$final_message\n Profiling:\tNo"
- DEBUG_FLAGS="-g -D_DEBUG -Wall"
- fi
-else
- final_message="$final_message\n Debugging:\tNo"
- if test "$use_profiling" = "yes"; then
- final_message="$final_message\n Profiling:\tYes"
- DEBUG_FLAGS="-pg -DNDEBUG=1"
- else
- final_message="$final_message\n Profiling:\tNo"
- DEBUG_FLAGS="-DNDEBUG=1"
- fi
-fi
-
if test "$cross_compiling" = "yes"; then
final_message="$final_message\n Crosscomp.:\tYes"
else
@@ -1034,14 +1045,6 @@ fi
final_message="$final_message\n target ARCH:\t$use_arch"
final_message="$final_message\n target CPU:\t$use_cpu"
-if test "$use_optimizations" = "yes"; then
- final_message="$final_message\n Optimization:\tYes"
- CXXFLAGS="$CXXFLAGS -O2"
- CFLAGS="$CFLAGS -O2"
-else
- final_message="$final_message\n Optimization:\tNo"
-fi
-
if test "$use_gles" = "yes"; then
final_message="$final_message\n OpenGLES:\tYes"
else
@@ -1368,7 +1371,6 @@ AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(INCLUDES)
AC_SUBST(LDFLAGS)
-AC_SUBST(DEBUG_FLAGS)
AC_SUBST(SDL_DEFINES)
AC_SUBST(BUILD_DVDCSS)
AC_SUBST(BUILD_GOOM)