summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2008-05-26 01:34:38 +0000
committerRyan Hill <dirtyepic@gentoo.org>2008-05-26 01:34:38 +0000
commit6a04d0278afc9c06e482e0130c9ac6775dd1d168 (patch)
tree9b056d0b3bf8c64b37e57ae3680ab098013281e5 /sys-devel/distcc/files
parentAdd custom-cpuopts use flag; add dxr2, dxr3 use flag, bug 223587 (diff)
downloadgentoo-2-6a04d0278afc9c06e482e0130c9ac6775dd1d168.tar.gz
gentoo-2-6a04d0278afc9c06e482e0130c9ac6775dd1d168.tar.bz2
gentoo-2-6a04d0278afc9c06e482e0130c9ac6775dd1d168.zip
Add patch to always run jobs containing -march=native locally. Bug
#223159. (Portage version: 2.2_pre7/cvs/Linux 2.6.25-gentoo-r3 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz)
Diffstat (limited to 'sys-devel/distcc/files')
-rw-r--r--sys-devel/distcc/files/distcc-march-native.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-devel/distcc/files/distcc-march-native.patch b/sys-devel/distcc/files/distcc-march-native.patch
new file mode 100644
index 000000000000..a5c9bb2e4da1
--- /dev/null
+++ b/sys-devel/distcc/files/distcc-march-native.patch
@@ -0,0 +1,16 @@
+diff -ur distcc-2.18.3/src/arg.c distcc-modified/src/arg.c
+--- distcc-2.18.3/src/arg.c 2004-11-30 13:13:53.000000000 +0100
++++ distcc-modified/src/arg.c 2008-02-05 17:56:58.000000000 +0100
+@@ -171,6 +171,12 @@
+ to distribute it even if we could. */
+ rs_trace("%s implies -E (maybe) and must be local", a);
+ return EXIT_DISTCC_FAILED;
++ } else if (!strcmp(a, "-march=native")) {
++ rs_trace("-march=native generates code for local machine; must be local");
++ return EXIT_DISTCC_FAILED;
++ } else if (!strcmp(a, "-mtune=native")) {
++ rs_trace("-mtune=native optimizes for local machine; must be local");
++ return EXIT_DISTCC_FAILED;
+ } else if (str_startswith("-Wa,", a)) {
+ /* Look for assembler options that would produce output
+ * files and must be local.