Removed -fprofile-generate/-fprofile-use optimization it breaks, Removed
static lib from python, Daniel
This commit is contained in:
parent
a2726c4406
commit
6dea98df18
56
libxml2.spec
56
libxml2.spec
@ -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
|
||||
@ -97,7 +100,8 @@ rm -fr %{buildroot}
|
||||
%makeinstall
|
||||
(cd doc/examples ; make clean ; rm -rf .deps)
|
||||
gzip -9 doc/libxml2-api.xml
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
|
||||
$RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxml2mod*a
|
||||
|
||||
%clean
|
||||
rm -fr %{buildroot}
|
||||
|
Loading…
Reference in New Issue
Block a user