aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/pcc/patches/x86-build-fix.patch
blob: 3638bd37ac7e31fde95706981ad595b2f87946bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Fix x86 build failure: only use MULTIARCH_PATH if it's defined :-)

	--xtraeme

--- pcc/cc/cc/cc.c.orig	2014-12-18 14:57:43.961103113 +0100
+++ pcc/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 */