summaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-02-17 04:25:40 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-02-17 04:25:40 (GMT)
commit5937bcd021535b014f208bdcb221990692138af5 (patch)
tree0a9300063db81f5f6e5e74fd6e731509b180d6ca /src/Makefile.in
parent715460cf620cfbb488622274a6c92920ab0c58a8 (diff)
downloadhdf5-5937bcd021535b014f208bdcb221990692138af5.zip
hdf5-5937bcd021535b014f208bdcb221990692138af5.tar.gz
hdf5-5937bcd021535b014f208bdcb221990692138af5.tar.bz2
[svn-r8207] Purpose:
Bug fix, sort of. Description: Some compilers, e.g., intel compiler, would take a long time to compiler H5detect.c if optimization is on. Solution: Setup special make rules for H5detect to be compiled always with optimization off by using -g. Since H5detect is run once to generate H5Tinit.c, it does not matter that much if it is optimized or not. Platforms tested: "h5committested". Tested in Titan too.
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index e0ade04..257d52c 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -92,8 +92,12 @@ H5Tinit.c: H5detect
($(RM) $@ ; exit 1)
## no $(LIB) in the action below since that's being made now.
+## Use -g to force no optimization since many compilers (e.g., Intel) takes
+## a long time to compile it with any optimization on. H5detect is used
+## to generate H5Tinit.c once. So, optimization is not critical.
H5detect: H5detect.lo
- @$(LT_LINK_EXE) $(CFLAGS) -o $@ H5detect.lo $(LDFLAGS) $(LIBS)
+ $(CC) $(CFLAGS) $(CPPFLAGS) -g $(srcdir)/H5detect.c \
+ $(LDFLAGS) $(LIBS) -o $@
@CONCLUDE@