diff options
Diffstat (limited to 'meta/recipes-support/nspr/files/fix-build-on-x86_64.patch')
-rw-r--r-- | meta/recipes-support/nspr/files/fix-build-on-x86_64.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-support/nspr/files/fix-build-on-x86_64.patch b/meta/recipes-support/nspr/files/fix-build-on-x86_64.patch new file mode 100644 index 0000000000..a6fa1ea607 --- /dev/null +++ b/meta/recipes-support/nspr/files/fix-build-on-x86_64.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | Fix build failure on x86_64 | ||
2 | |||
3 | When the target_cpu is x86_64, we should assume that the pkg uses 64bit, | ||
4 | only if USE_N32 is set, we can assume that the pkg uses 32bit. It used a | ||
5 | opposite logic before. | ||
6 | |||
7 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | --- | ||
11 | configure.in | 12 ++++++------ | ||
12 | 1 files changed, 6 insertions(+), 6 deletions(-) | ||
13 | |||
14 | diff --git a/configure.in b/configure.in | ||
15 | index 39c96a3..99a03ac 100644 | ||
16 | --- a/configure.in | ||
17 | +++ b/configure.in | ||
18 | @@ -1778,24 +1778,24 @@ tools are selected during the Xcode/Developer Tools installation.]) | ||
19 | PR_MD_ASFILES=os_Linux_ia64.s | ||
20 | ;; | ||
21 | x86_64) | ||
22 | - if test -n "$USE_64"; then | ||
23 | - PR_MD_ASFILES=os_Linux_x86_64.s | ||
24 | - else | ||
25 | + if test -n "$USE_N32"; then | ||
26 | AC_DEFINE(i386) | ||
27 | PR_MD_ASFILES=os_Linux_x86.s | ||
28 | CC="$CC -m32" | ||
29 | CXX="$CXX -m32" | ||
30 | + else | ||
31 | + PR_MD_ASFILES=os_Linux_x86_64.s | ||
32 | fi | ||
33 | ;; | ||
34 | ppc|powerpc) | ||
35 | PR_MD_ASFILES=os_Linux_ppc.s | ||
36 | ;; | ||
37 | powerpc64) | ||
38 | - if test -n "$USE_64"; then | ||
39 | + if test -n "$USE_N32"; then | ||
40 | + PR_MD_ASFILES=os_Linux_ppc.s | ||
41 | + else | ||
42 | CC="$CC -m64" | ||
43 | CXX="$CXX -m64" | ||
44 | - else | ||
45 | - PR_MD_ASFILES=os_Linux_ppc.s | ||
46 | fi | ||
47 | ;; | ||
48 | m68k) | ||
49 | -- | ||
50 | 1.7.1 | ||
51 | |||