aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-09 16:11:45 +0000
committerlloyd <[email protected]>2009-10-09 16:11:45 +0000
commitb37dbf1f1c80168f79bcb59809be5002dc7515b4 (patch)
treed3891048ea9b2f31c9f492ce5299beb319f215a7 /src/build-data/cc
parent22d3cefcb55369ceaece846bc2fa0c34edfb75fe (diff)
Fix --enable-debug
With GCC, only use -finline-functions if not a debug build
Diffstat (limited to 'src/build-data/cc')
-rw-r--r--src/build-data/cc/gcc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build-data/cc/gcc b/src/build-data/cc/gcc
index 606b622f6..9adef8cfb 100644
--- a/src/build-data/cc/gcc
+++ b/src/build-data/cc/gcc
@@ -16,10 +16,11 @@ lang_flags "-D_REENTRANT -ansi -Wno-long-long"
warning_flags "-W -Wall"
#warning_flags "-Wextra -Wall -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wno-unused-parameter"
-lib_opt_flags "-O2 -finline-functions"
-check_opt_flags "-O2"
+lib_opt_flags "-O2"
+check_opt_flags "-O"
shared_flags "-fPIC"
debug_flags "-g"
+no_debug_flags "-finline-functions"
dll_import_flags ""
dll_export_flags ""