[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] patch for libvob
From: |
Jukka Honkela |
Subject: |
[Gzz] patch for libvob |
Date: |
Tue, 22 Apr 2003 11:32:07 +0300 (EEST) |
Here is a small patch for libvob, although somewhat broken one
because it does not do any checks and is probably dependent on
the shell in use etc..
Anyhow, as some people, including me, do not have g++-3.2 but
just g++ which happens to be 3.2, it'd be nice if the thing
could be compiled without much modifications.
Secondly, I added two lines for athlon XP and MP compiler flags
(affects SSE usage, I think)
--- rules.mk.old 2003-04-22 11:15:05.000000000 +0300
+++ rules.mk 2003-04-22 11:10:27.000000000 +0300
@@ -1,12 +1,16 @@
-GCCVER=3.2
+PREGCCVER=-3.2
.SUFFIXES: $(SUFFIXES) .dep .cxx .vobgenobj .transgenobj .vobdep .transdep
.vobjniobj .transjniobj .vobgenjni .transgenjni
-CXX=g++-$(GCCVER)
-CXXLINK=gcc-$(GCCVER)
+GCCVER=$(shell [ -z "`g++$(PREGCCVER) --version 2>/dev/null`" ] || echo
"$(PREGCCVER)")
+
+CXX=g++$(GCCVER)
+CXXLINK=gcc$(GCCVER)
# Choose architecture
ARCHOPTS=-e 's/^model name.*Pentium III.*$$/-march=pentium3/' \
-e 's/^model name.*Pentium(R) 4.*$$/-march=pentium4/' \
+ -e 's/^model name.*AMD Athlon(tm) XP.*$$/-march=athlon-xp/' \
+ -e 's/^model name.*AMD Athlon(tm) MP.*$$/-march=athlon-mp/' \
-e 's/^model name.*AMD Athlon(tm).*$$/-march=athlon/' \
-e 's/^flags.*sse2.*$$/-mfpmath=sse -msse2/' \
--
Jukka Honkela
- [Gzz] patch for libvob,
Jukka Honkela <=