From baad7887d34861b6269a1a36ad18775130307fa8 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 25 Aug 2005 22:52:51 +0000 Subject: the profiling usually don't work, disabled rebuilt Daniel * libxml.spec.in: the profiling usually don't work, disabled * doc/*: rebuilt Daniel --- libxml.spec.in | 53 ++++++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 25 deletions(-) (limited to 'libxml.spec.in') diff --git a/libxml.spec.in b/libxml.spec.in index 91972bdc..6b5a22ca 100644 --- a/libxml.spec.in +++ b/libxml.spec.in @@ -64,31 +64,34 @@ at parse time or later once the document has been modified. # try to use compiler profiling, based on Arjan van de Ven # initial test spec. This really doesn't work okay for most tests done. # -GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'` -if [ $GCC_VERSION -ge 34 ] -then - PROF_GEN='-fprofile-generate' - PROF_USE='-fprofile-use' -fi - -if [ "$PROF_GEN" != "" ] -then - # First generate a profiling version - CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure - make - # Run a few sampling - make dba100000.xml - ./xmllint --noout dba100000.xml - ./xmllint --stream dba100000.xml - ./xmllint --noout --valid test/valid/REC-xml-19980210.xml - ./xmllint --stream --valid test/valid/REC-xml-19980210.xml - # Then generate code based on profile - CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure - make -else - %configure - make -fi +# Well except it's just broken most of the time. +#GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'` +#if [ $GCC_VERSION -ge 34 ] +#then +# PROF_GEN='-fprofile-generate' +# PROF_USE='-fprofile-use' +#fi +# +#if [ "$PROF_GEN" != "" ] +#then +# # First generate a profiling version +# CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure +# make +# # Run a few sampling +# make dba100000.xml +# ./xmllint --noout dba100000.xml +# ./xmllint --stream dba100000.xml +# ./xmllint --noout --valid test/valid/REC-xml-19980210.xml +# ./xmllint --stream --valid test/valid/REC-xml-19980210.xml +# # Then generate code based on profile +# CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure +# make +#else +# %configure +# make +#fi +%configure +make gzip -9 ChangeLog %install -- cgit v1.2.3