File: 46_compilerflags.dpatch

package info (click to toggle)
maxdb-buildtools 562049-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 65,936 kB
  • ctags: 71,169
  • sloc: ansic: 265,970; perl: 108,708; python: 30,361; xml: 18,494; sh: 14,652; cpp: 8,606; yacc: 5,328; makefile: 2,082; lex: 708; asm: 321; fortran: 5; pascal: 4
file content (28 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh /usr/share/dpatch/dpatch-run
## 46_compilerflags.dpatch by  <debian@martin-kittel.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Use default of -march=pentiumpro for MaxDB compilation on i386 

@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./sys/src/tt/toolvars-tml.pl.tt /tmp/dpep-work.bodKs5/maxdb-buildtools-562049/sys/src/tt/toolvars-tml.pl.tt
--- ./sys/src/tt/toolvars-tml.pl.tt	2005-07-06 21:15:26.000000000 +0200
+++ /tmp/dpep-work.bodKs5/maxdb-buildtools-562049/sys/src/tt/toolvars-tml.pl.tt	2005-09-17 12:09:17.000000000 +0200
@@ -1123,7 +1123,7 @@
 	}
 &elif $OSSPEC = LINUX
 	if ($MACH eq "I386") {
-		@OPTIMIZE = ("-O3", "-march=pentium", "-mcpu=pentiumpro");
+		@OPTIMIZE = ("-O3", "-mtune=pentiumpro");
 	} elsif (($MACH eq "IA64") && ($ENV{'COMPILER'} =~ /ICC$/i)) {
 		@OPTIMIZE = ();
 	} elsif ($MACH eq "IA64" || $MACH eq "SDBonPPC64" || $MACH eq "S390X") {
@@ -1208,7 +1208,7 @@
 	}
 &elif $OSSPEC = LINUX
 	if ($MACH eq "I386") {
-		@OPTIMIZE = ("-O3", "-march=pentium", "-mcpu=pentiumpro");
+		@OPTIMIZE = ("-O3", "-mtune=pentiumpro");
 	} 
 	elsif (($MACH eq "IA64") && ($ENV{'COMPILER'} =~ /ICC$/i)) {
     @OPTIMIZE = ();