diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-05-15 01:21:58 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-05-15 01:21:58 (GMT) |
commit | e81f0ade7781aec1960d50202fb838e300da0f96 (patch) | |
tree | 0922c1e71953a2827743230d06635db97f9a5d98 /config | |
parent | 37a07df7b40a1df1c2bcd6776635ee0703aa4455 (diff) | |
download | hdf5-e81f0ade7781aec1960d50202fb838e300da0f96.zip hdf5-e81f0ade7781aec1960d50202fb838e300da0f96.tar.gz hdf5-e81f0ade7781aec1960d50202fb838e300da0f96.tar.bz2 |
[svn-r27066] Description:
Protect gcc 5 debugging options
Tested on:
MacOSX/64 10.10.3 (amazon) w/gcc 5.1
Diffstat (limited to 'config')
-rw-r--r-- | config/gnu-flags | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index ec7b9b2..5f10519 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -111,7 +111,14 @@ case "$cc_vendor-$cc_version" in PROD_CPPFLAGS= # Debug - DEBUG_CFLAGS="-Og -g -ftrapv -fno-common" + case "$cc_vendor-$cc_version" in + gcc-5.*) + DEBUG_CFLAGS="-Og -g -ftrapv -fno-common" + ;; + *) + DEBUG_CFLAGS="-g" + ;; + esac #DEBUG_CFLAGS="$DEBUG_CFLAGS -fsanitize=undefined" DEBUG_CPPFLAGS= |