diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-08-25 22:52:51 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-08-25 22:52:51 +0000 |
commit | baad7887d34861b6269a1a36ad18775130307fa8 (patch) | |
tree | ad85cd5e98c0bec210cb324e485a01afafa400ce /libxml.spec.in | |
parent | 32a461f68b33c7073d9c483bdba46e8a70067f0a (diff) | |
download | android_external_libxml2-baad7887d34861b6269a1a36ad18775130307fa8.tar.gz android_external_libxml2-baad7887d34861b6269a1a36ad18775130307fa8.tar.bz2 android_external_libxml2-baad7887d34861b6269a1a36ad18775130307fa8.zip |
the profiling usually don't work, disabled rebuilt Daniel
* libxml.spec.in: the profiling usually don't work, disabled
* doc/*: rebuilt
Daniel
Diffstat (limited to 'libxml.spec.in')
-rw-r--r-- | libxml.spec.in | 53 |
1 files changed, 28 insertions, 25 deletions
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 <arjanv@redhat.com> # 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 |