summaryrefslogtreecommitdiffstats
path: root/config/linux
diff options
context:
space:
mode:
Diffstat (limited to 'config/linux')
-rw-r--r--config/linux13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/linux b/config/linux
index bf4b791..ec59f3f 100644
--- a/config/linux
+++ b/config/linux
@@ -1,6 +1,17 @@
# Site configuration -- do not distribute this file.
+CFLAGS_WARN="-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
+
+CFLAGS_DEBUG="-g -DH5AC_DEBUG_PROTECT -DFILELIB=1 -fverbose-asm"
+CFLAGS_PROFILE="-pg"
+CFLAGS_PRODUCTION="-O3 -UH5AC_DEBUG_PROTECT -DNDEBUG -finline-functions -funroll-loops -malign-double -fomit-frame-pointer"
+
if test "x$CFLAGS" = "x"; then
- CFLAGS="-g -DH5AC_DEBUG_PROTECT -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
+
+ # Uncomment the following line for a production version of the library.
+ #CFLAGS="-pipe $CFLAGS_PRODUCTION $CFLAGS_WARN"
+
+ # Uncomment the following line for normal development
+ CFLAGS="-pipe $CFLAGS_DEBUG $CFLAGS_WARN"
fi