Skip to content

Commit

Permalink
too bleeding edge to be useful with gcc-3.2 and 3.3, Daniel
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Veillard committed Jun 27, 2004
1 parent 577d145 commit 0f59a34
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions libxml.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,25 @@ at parse time or later once the document has been modified.
%build
#
# try to use compiler profiling, based on Arjan van de Ven <[email protected]>
# initial test spec
# 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 -eq 32 ]
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 ]
#if [ $GCC_VERSION -eq 32 ]
#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
PROF_GEN='-fprofile-generate'
PROF_USE='-fprofile-use'
fi
fi
fi
#fi
#fi

if [ "$PROF_GEN" != "" ]
then
Expand Down

0 comments on commit 0f59a34

Please sign in to comment.