aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pcc/multiarch.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-09-16 20:41:47 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-09-16 20:41:47 +0200
commit7accb497d06bfa461b937491472b6d6286de675c (patch)
treebe21a829279930e576a5c2f6533a94aca4106321 /testing/pcc/multiarch.patch
parentcc31e0e377101925670c44f7eff01c501a7f28cd (diff)
downloadaports-7accb497d06bfa461b937491472b6d6286de675c.tar.bz2
aports-7accb497d06bfa461b937491472b6d6286de675c.tar.xz
testing/pcc: add multiarch patch from gentoo
Should fix build on x86.
Diffstat (limited to 'testing/pcc/multiarch.patch')
-rw-r--r--testing/pcc/multiarch.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/pcc/multiarch.patch b/testing/pcc/multiarch.patch
new file mode 100644
index 0000000000..087fda3c20
--- /dev/null
+++ b/testing/pcc/multiarch.patch
@@ -0,0 +1,12 @@
+diff -upr pcc-1.1.0.orig/cc/cc/cc.c pcc-1.1.0/cc/cc/cc.c
+--- pcc-1.1.0.orig/cc/cc/cc.c 2016-09-16 20:38:14.932292071 +0200
++++ pcc-1.1.0/cc/cc/cc.c 2016-09-16 20:39:17.022094921 +0200
+@@ -206,7 +206,7 @@ char *cppmdadd[] = CPPMDADD;
+ #define PCCLIBDIR NULL
+ #endif
+ #ifndef DEFLIBDIRS /* default library search paths */
+-#ifdef MULTIARCH_PATH
++#ifndef MULTIARCH_PATH
+ #define DEFLIBDIRS { "/usr/lib/", 0 }
+ #else
+ #define DEFLIBDIRS { "/usr/lib/", "/usr/lib/" MULTIARCH_PATH "/", 0 }