Add host specific debug information

This commit is contained in:
Danny Robson 2012-05-10 16:56:25 +10:00
parent cc9a157e9c
commit 9624aff9df

View File

@ -72,7 +72,6 @@ AS_CXX_COMPILER_FLAG([-fno-nonansi-builtins],
[COMMON_CFLAGS="$COMMON_CFLAGS -fno-nonansi-builtins"]) [COMMON_CFLAGS="$COMMON_CFLAGS -fno-nonansi-builtins"])
AS_CXX_COMPILER_FLAG([-fno-rtti], [COMMON_CFLAGS="$COMMON_CFLAGS -fno-rtti"]) AS_CXX_COMPILER_FLAG([-fno-rtti], [COMMON_CFLAGS="$COMMON_CFLAGS -fno-rtti"])
AS_CXX_COMPILER_FLAG([-ggdb], [COMMON_CFLAGS="$COMMON_CFLAGS -ggdb"])
## ##
## Compiler features ## Compiler features
@ -138,6 +137,21 @@ else
COMMON_CFLAGS="$COMMON_CFLAGS -O2" COMMON_CFLAGS="$COMMON_CFLAGS -O2"
fi fi
case $host_os in
mingw32)
COMMON_CFLAGS="$COMMON_CFLAGS -gstabs"
;;
linux-gnu)
COMMON_CFLAGS="$COMMON_CFLAGS -g"
AS_CXX_COMPILER_FLAG([-ggdb], [COMMON_CFLAGS="$COMMON_CFLAGS -ggdb"])
;;
*)
AC_ERROR([Unknown host_os])
;;
esac
case $host_cpu in case $host_cpu in
x86_64) x86_64)
OPTIMISATION_FLAGS="$OPTIMISATION_FLAGS -mtune=core2" OPTIMISATION_FLAGS="$OPTIMISATION_FLAGS -mtune=core2"