summaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-02-16 22:06:35 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-02-16 22:06:35 (GMT)
commita07f22582eb4ba5980603e5452851de6ff5aa3b1 (patch)
treed532086c7a8b24858bb6a61f00f61c6aa95d27e5 /src/Makefile.in
parent7488de6c341a60d649172e5d4ed20ce125b4e048 (diff)
downloadhdf5-a07f22582eb4ba5980603e5452851de6ff5aa3b1.zip
hdf5-a07f22582eb4ba5980603e5452851de6ff5aa3b1.tar.gz
hdf5-a07f22582eb4ba5980603e5452851de6ff5aa3b1.tar.bz2
[svn-r8206] 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. 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. Misc. update:
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index e336099..baf7fba 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -84,8 +84,12 @@ H5Tinit.c: H5detect
($(RM) $@ ; exit 1)
## no $(LIB) in the action below since that's being made now.
-H5detect: H5detect.lo
- @$(LT_LINK_EXE) $(CFLAGS) -o $@ H5detect.lo $(LDFLAGS) $(LIBS)
+## 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: $(srcdir)/H5detect.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -O0 $(srcdir)/H5detect.c \
+ $(LDFLAGS) $(LIBS) -o $@
@CONCLUDE@