Another attempts at compiling with gcc4, Daniel

This commit is contained in:
Daniel Veillard 2005-03-08 14:03:24 +00:00
parent 3a3560212b
commit 24fa5fb828

View File

@ -1,7 +1,7 @@
Summary: Library providing XML and HTML support Summary: Library providing XML and HTML support
Name: libxml2 Name: libxml2
Version: 2.6.17 Version: 2.6.17
Release: 4 Release: 5
License: MIT License: MIT
Group: Development/Libraries Group: Development/Libraries
Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz
@ -67,22 +67,11 @@ at parse time or later once the document has been modified.
# 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+'` GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'`
#if [ $GCC_VERSION -eq 32 ] if [ $GCC_VERSION -eq 34 ]
#then
# PROF_GEN='-fprofile-arcs'
# PROF_USE='-fbranch-probabilities'
#else if [ $GCC_VERSION -eq 33 ]
#then
# PROF_GEN='-fprofile-arcs'
# PROF_USE='-fbranch-probabilities -ftracer'
#else
if [ $GCC_VERSION -ge 34 ]
then then
PROF_GEN='-fprofile-generate' PROF_GEN='-fprofile-generate'
PROF_USE='-fprofile-use' PROF_USE='-fprofile-use'
fi fi
#fi
#fi
if [ "$PROF_GEN" != "" ] if [ "$PROF_GEN" != "" ]
then then