From c780038bb5bea86c76a99acd489d71145ad7b2f9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 18 Dec 2014 14:59:45 +0100 Subject: [PATCH] pcc: fix x86 build. --- srcpkgs/pcc/patches/x86-build-fix.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/pcc/patches/x86-build-fix.patch diff --git a/srcpkgs/pcc/patches/x86-build-fix.patch b/srcpkgs/pcc/patches/x86-build-fix.patch new file mode 100644 index 00000000000..2f4f376f1ce --- /dev/null +++ b/srcpkgs/pcc/patches/x86-build-fix.patch @@ -0,0 +1,18 @@ +Fix x86 build failure: only use MULTIARCH_PATH if it's defined :-) + + --xtraeme + +--- cc/cc/cc.c.orig 2014-12-18 14:57:43.961103113 +0100 ++++ cc/cc/cc.c 2014-12-18 14:57:52.881207162 +0100 +@@ -207,9 +207,9 @@ char *cppmdadd[] = CPPMDADD; + #endif + #ifndef DEFLIBDIRS /* default library search paths */ + #ifdef MULTIARCH_PATH +-#define DEFLIBDIRS { "/usr/lib/", 0 } +-#else + #define DEFLIBDIRS { "/usr/lib/", "/usr/lib/" MULTIARCH_PATH "/", 0 } ++#else ++#define DEFLIBDIRS { "/usr/lib/", 0 } + #endif + #endif + #ifndef DEFLIBS /* default libraries included */