summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/linux37
1 files changed, 19 insertions, 18 deletions
diff --git a/config/linux b/config/linux
index 6f025e7..d0d8620 100644
--- a/config/linux
+++ b/config/linux
@@ -14,6 +14,7 @@ fi
ARCH="-mcpu=pentiumpro -march=pentiumpro -malign-double"
NOFP="-fomit-frame-pointer"
+HDF4_FLAGS="-D__i386"
# Compiler flags. We use `-v' to get the version number because it almost
# always works on Linux systems.
@@ -26,49 +27,49 @@ case `$CC -v 2>&1 |grep 'gcc version' |sed 's/.*gcc version //'` in
echo " +------------------------------------------------+"
sleep 5
CFLAGS="$CFLAGS -ansi"
- PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2"
- PROD_CPPFLAGS=
- DEBUG_CFLAGS="-g -fverbose-asm"
- DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
+ PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2 -Wno-shadow"
+ PROD_CPPFLAGS="$HDF4_FLAGS"
+ DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow"
+ DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
PROFILE_CFLAGS=-pg
PROFILE_CPPFLAGS=
;;
2.8.*)
CFLAGS="$CFLAGS -Wsign-compare"
- PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2"
- PROD_CPPFLAGS=
- DEBUG_CFLAGS="-g -fverbose-asm"
- DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
+ PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2 -Wno-shadow"
+ PROD_CPPFLAGS="$HDF4_FLAGS"
+ DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow"
+ DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
PROFILE_CFLAGS=-pg
PROFILE_CPPFLAGS=
;;
egcs-*)
CFLAGS="$CFLAGS -Wsign-compare"
- PROD_CFLAGS="$ARCH -O6 $NOFP"
- PROD_CPPFLAGS=
- DEBUG_CFLAGS="-g -fverbose-asm"
- DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
+ PROD_CFLAGS="$ARCH -O6 $NOFP -Wno-shadow"
+ PROD_CPPFLAGS="$HDF4_FLAGS"
+ DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow"
+ DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
PROFILE_CFLAGS=-pg
PROFILE_CPPFLAGS=
;;
pgcc-*)
CFLAGS="$CFLAGS -Wsign-compare"
- PROD_CFLAGS="$ARCH -O6 $NOFP"
- PROD_CPPFLAGS=
- DEBUG_CFLAGS="-g -fverbose-asm"
- DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
+ PROD_CFLAGS="$ARCH -O6 $NOFP -Wno-shadow"
+ PROD_CPPFLAGS="$HDF4_FLAGS"
+ DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow"
+ DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
PROFILE_CFLAGS=-pg
PROFILE_CPPFLAGS=
;;
*)
PROD_CFLAGS=-O
- PROD_CPPFLAGS=
+ PROD_CPPFLAGS="$HDF4_FLAGS"
DEBUG_CFLAGS="-g"
- DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
+ DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2"
PROFILE_CFLAGS=-pg
PROFILE_CPPFLAGS=
;;