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>
|
# 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.
|
# 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+'`
|
# Well except it's just broken most of the time.
|
||||||
if [ $GCC_VERSION -ge 34 ]
|
#GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'`
|
||||||
then
|
#if [ $GCC_VERSION -ge 34 ]
|
||||||
PROF_GEN='-fprofile-generate'
|
#then
|
||||||
PROF_USE='-fprofile-use'
|
# PROF_GEN='-fprofile-generate'
|
||||||
fi
|
# PROF_USE='-fprofile-use'
|
||||||
|
#fi
|
||||||
if [ "$PROF_GEN" != "" ]
|
#
|
||||||
then
|
#if [ "$PROF_GEN" != "" ]
|
||||||
# First generate a profiling version
|
#then
|
||||||
CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure
|
# # First generate a profiling version
|
||||||
make
|
# CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure
|
||||||
# Run a few sampling
|
# make
|
||||||
make dba100000.xml
|
# # Run a few sampling
|
||||||
./xmllint --noout dba100000.xml
|
# make dba100000.xml
|
||||||
./xmllint --stream dba100000.xml
|
# ./xmllint --noout dba100000.xml
|
||||||
./xmllint --noout --valid test/valid/REC-xml-19980210.xml
|
# ./xmllint --stream dba100000.xml
|
||||||
./xmllint --stream --valid test/valid/REC-xml-19980210.xml
|
# ./xmllint --noout --valid test/valid/REC-xml-19980210.xml
|
||||||
# Then generate code based on profile
|
# ./xmllint --stream --valid test/valid/REC-xml-19980210.xml
|
||||||
CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure
|
# # Then generate code based on profile
|
||||||
make
|
# CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure
|
||||||
else
|
# make
|
||||||
%configure
|
#else
|
||||||
make
|
# %configure
|
||||||
fi
|
# make
|
||||||
|
#fi
|
||||||
|
%configure
|
||||||
|
make
|
||||||
gzip -9 ChangeLog
|
gzip -9 ChangeLog
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -97,7 +100,8 @@ rm -fr %{buildroot}
|
|||||||
%makeinstall
|
%makeinstall
|
||||||
(cd doc/examples ; make clean ; rm -rf .deps)
|
(cd doc/examples ; make clean ; rm -rf .deps)
|
||||||
gzip -9 doc/libxml2-api.xml
|
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
|
%clean
|
||||||
rm -fr %{buildroot}
|
rm -fr %{buildroot}
|
||||||
|
Loading…
Reference in New Issue
Block a user