diff options
author | Paul Harten <pharten@ncsa.uiuc.edu> | 1999-01-19 15:00:30 (GMT) |
---|---|---|
committer | Paul Harten <pharten@ncsa.uiuc.edu> | 1999-01-19 15:00:30 (GMT) |
commit | 7b9ce8a96c8d0a493f09054220ccb7d44d4c417a (patch) | |
tree | 43fd77a26132a52023e0b03de10e0f10cb1a5a03 | |
parent | a2db22ab74d0b4c552e9efe25209ca68ac42ce5d (diff) | |
download | hdf5-7b9ce8a96c8d0a493f09054220ccb7d44d4c417a.zip hdf5-7b9ce8a96c8d0a493f09054220ccb7d44d4c417a.tar.gz hdf5-7b9ce8a96c8d0a493f09054220ccb7d44d4c417a.tar.bz2 |
[svn-r1024] Purpose:
Bug fix
Problem:
When -with-hdf4 option is selected during configure,
no machine type found for HDF4 header file hdfi.h.
Solution:
Modify hdf5/config/linux file:
-D__i386 to be added to CPPFLAGS.
Platform tested:
linux(penfold)
-rw-r--r-- | config/linux | 37 |
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= ;; |