summaryrefslogtreecommitdiffstats
path: root/patches/nss-3.46/0001-nss-fix-nsinstall-build.patch
blob: ab3f9133e5eb441d41f5b1d361776fc0edc219df (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Wenzong Fan <wenzong.fan@windriver.com>
Date: Tue, 12 Apr 2016 11:33:52 +0200
Subject: [PATCH] nss: fix nsinstall build

Fix nss multilib build on openSUSE 11.x 32bit

While building lib64-nss on openSUSE 11.x 32bit, the nsinstall will
fail with error:

* nsinstall.c:1:0: sorry, unimplemented: 64-bit mode not compiled

It caused by the '-m64' option which passed to host gcc.

The nsinstall was built first while nss starting to build, it only runs
on host to install built files, it doesn't need any cross-compling or
multilib build options. Just clean the ARCHFLAG and LDFLAGS to fix this
error.

Upstream-Status: Pending

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 nss/coreconf/nsinstall/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/nss/coreconf/nsinstall/Makefile b/nss/coreconf/nsinstall/Makefile
index 1850bcb93cf7..75297de39ce1 100644
--- a/nss/coreconf/nsinstall/Makefile
+++ b/nss/coreconf/nsinstall/Makefile
@@ -18,6 +18,13 @@ INTERNAL_TOOLS  = 1
 
 include $(DEPTH)/coreconf/config.mk
 
+# nsinstall is unfit for cross-compiling/multilib-build since it was
+# always run on local host to install built files. This change intends
+# to clean the '-m64' from ARCHFLAG and LDFLAGS.
+ARCHFLAG =
+LDFLAGS =
+CFLAGS =
+
 ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET)))
 PROGRAM		=
 else