summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-03-07 20:07:40 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-03-07 20:07:40 (GMT)
commitfd5e3d23af50a3f525feae8673691e4dd361d207 (patch)
tree7aabcf0de79244d1b9f888843ccd286e7659cee1 /tools
parent867e0c5316e66d36b12b72d858918c9fba312f64 (diff)
downloadhdf5-fd5e3d23af50a3f525feae8673691e4dd361d207.zip
hdf5-fd5e3d23af50a3f525feae8673691e4dd361d207.tar.gz
hdf5-fd5e3d23af50a3f525feae8673691e4dd361d207.tar.bz2
[svn-r5042] Purpose:
Bug Fix Description: Some -I paths weren't included in the h5cc script. That would cause the compiler to fail if it was trying to find gass header files or the like. Solution: Added the CPPFLAGS macro to the h5cc.in file so that it'll be there when it's generated. This will also include some -D options which we compiled the library with, like the LFS flags on Linux. Also changed the configure* files so that it will "chmod" the created h5cc file to 755 (executable) since that wasn't happening all the time... Platforms tested: Linux
Diffstat (limited to 'tools')
-rwxr-xr-xtools/misc/h5cc.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in
index 31edd21..aa14ff3 100755
--- a/tools/misc/h5cc.in
+++ b/tools/misc/h5cc.in
@@ -46,6 +46,7 @@ SHOW="eval"
CCBASE="@CC@"
CLINKERBASE="@CC@"
CFLAGS="@CFLAGS@"
+CPPFLAGS="@CPPFLAGS@"
LDFLAGS="@LDFLAGS@"
LIBS="@LIBS@"
@@ -209,7 +210,7 @@ if test "x$do_compile" = "xyes"; then
compile_args="-c $compile_args"
fi
- $SHOW $CC $CFLAGS -I$includedir $compile_args
+ $SHOW $CC $CPPFLAGS $CFLAGS -I$includedir $compile_args
status=$?
if test "$status" != "0"; then