summaryrefslogtreecommitdiffstats
path: root/patches/xmlrpc-c-1.06.42/0002-Makefile.config-fix-shared-libs-on-arm.patch
blob: e8225c2f8ba526ecce589432e23ae7b55e2ff7f8 (plain)
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
29
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Wed, 3 Feb 2010 12:43:37 +0100
Subject: [PATCH] Makefile.config: fix shared libs on arm

The magic to detect a linux system expects that "HOST_OS" ==
"linux-gnu". Unfortunately this is not true for modern arm system with
EABI, the "HOST_OS" is "linux-gnueabi".

With this patch, if the string "linux" is part of "HOST_OS" it's
considered to compile for a linux system.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 Makefile.config.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.config.in b/Makefile.config.in
index 07f37af..a79ca1e 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -136,7 +136,7 @@ endif
 # out how.  For the rest, we have this default:
 SHARED_LIB_TYPE = NONE
 
-ifeq ($(HOST_OS),linux-gnu)
+ifeq ($(findstring linux,$(HOST_OS)),linux)
   # Assume linker is GNU Compiler (gcc)
   SHARED_LIB_TYPE = unix
   SHLIB_SUFFIX = so