summaryrefslogtreecommitdiffstats
path: root/config/cce-flags
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-02-17 01:09:04 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-02-17 01:09:04 (GMT)
commitad0925c214c9d3afe9a013aa1e3adfb2bc3ba4dc (patch)
treeb09eecd7d0c54fea92af1eadce26a052bcaf2262 /config/cce-flags
parent6731dca11fb634e0eec285c59d61fe0de79f042d (diff)
downloadhdf5-ad0925c214c9d3afe9a013aa1e3adfb2bc3ba4dc.zip
hdf5-ad0925c214c9d3afe9a013aa1e3adfb2bc3ba4dc.tar.gz
hdf5-ad0925c214c9d3afe9a013aa1e3adfb2bc3ba4dc.tar.bz2
[svn-r29129] Added NO_SYMBOLS_CFLAGS, etc. to allow stripping symbols when
--disable-symbols is specified and to ensure that production mode (where symbol stripping is usually a part of the FLAGS) doesn't conflict with --enable-symbols. This will allow better (though still limited) debugging of production/optimized code. The PGI, XLC, Intel, and Solaris files were not modified and do not generate the symbol removal flag at this time. They'll be updated in future check-ins. In the meantime, production mode on those platforms still usually strips symbols. This check-in also updates the Cygwin-specific files to use the new autotools FLAGS and option scheme when uncommon (non-gnu, etc.) Fortran compilers are used. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools serial (prod/debug w/ and w/o symbols) symbol presence/absence checked with objdump
Diffstat (limited to 'config/cce-flags')
-rw-r--r--config/cce-flags10
1 files changed, 4 insertions, 6 deletions
diff --git a/config/cce-flags b/config/cce-flags
index e479363..8f3b2dc 100644
--- a/config/cce-flags
+++ b/config/cce-flags
@@ -54,23 +54,20 @@ if test "X-cce" = "X-$cc_vendor"; then
H5_CFLAGS="${H5_CFLAGS:--hc99 $arch}"
# Production
- # -Wl,-s to remove all symbols for smaller file
- PROD_CFLAGS="-Wl,-s"
- PROD_CPPFLAGS=
+ PROD_CFLAGS=
# Debug
# NDEBUG is handled explicitly in configure
DEBUG_CFLAGS=
- DEBUG_CPPFLAGS=
# Symbols
+ # -Wl,-s to remove all symbols for smaller file
SYMBOLS_CFLAGS="-g"
- SYMBOLS_CPPFLAGS=
+ NO_SYMBOLS_CFLAGS="-Wl,-s"
# Profiling
# Use this for profiling with gprof
PROFILE_CFLAGS="-p"
- PROFILE_CPPFLAGS=
# Optimization
HIGH_OPT_CFLAGS="-O3"
@@ -87,3 +84,4 @@ if test "X-$cc_flags_set" = "X-"; then
cc_vendor=
cc_version=
fi
+