Accepting request 210800 from openSUSE:Factory:PowerLE
- Add ppc64le-support.patch: * add support for powerpc64le-linux OBS-URL: https://build.opensuse.org/request/show/210800 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nspr?expand=0&rev=60
This commit is contained in:
parent
43f6fb4778
commit
30e96aac87
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 12 03:58:23 UTC 2013 - uweigand@de.ibm.com
|
||||||
|
|
||||||
|
- Add ppc64le-support.patch:
|
||||||
|
* add support for powerpc64le-linux
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 11 21:59:52 UTC 2013 - wr@rosenauer.org
|
Mon Nov 11 21:59:52 UTC 2013 - wr@rosenauer.org
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ Obsoletes: mozilla-nspr-64bit
|
|||||||
Source: nspr-%{version}.tar.bz2
|
Source: nspr-%{version}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Patch0: config-guess-sub-update.diff
|
Patch0: config-guess-sub-update.diff
|
||||||
|
Patch1: ppc64le-support.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -64,6 +65,7 @@ memory management (malloc and free), and shared library linking.
|
|||||||
%prep
|
%prep
|
||||||
%setup -n nspr-%{version} -q
|
%setup -n nspr-%{version} -q
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# set buildtime to "last-modification-time"
|
# set buildtime to "last-modification-time"
|
||||||
|
32
ppc64le-support.patch
Normal file
32
ppc64le-support.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
Index: nspr-4.10.2/pr/include/md/_linux.cfg
|
||||||
|
===================================================================
|
||||||
|
--- nspr-4.10.2.orig/pr/include/md/_linux.cfg
|
||||||
|
+++ nspr-4.10.2/pr/include/md/_linux.cfg
|
||||||
|
@@ -29,8 +29,13 @@
|
||||||
|
|
||||||
|
#ifdef __powerpc64__
|
||||||
|
|
||||||
|
+#ifdef __LITTLE_ENDIAN__
|
||||||
|
+#define IS_LITTLE_ENDIAN 1
|
||||||
|
+#undef IS_BIG_ENDIAN
|
||||||
|
+#else
|
||||||
|
#undef IS_LITTLE_ENDIAN
|
||||||
|
#define IS_BIG_ENDIAN 1
|
||||||
|
+#endif
|
||||||
|
#define IS_64
|
||||||
|
|
||||||
|
#define PR_BYTES_PER_BYTE 1
|
||||||
|
@@ -75,8 +80,13 @@
|
||||||
|
|
||||||
|
#elif defined(__powerpc__)
|
||||||
|
|
||||||
|
+#ifdef __LITTLE_ENDIAN__
|
||||||
|
+#define IS_LITTLE_ENDIAN 1
|
||||||
|
+#undef IS_BIG_ENDIAN
|
||||||
|
+#else
|
||||||
|
#undef IS_LITTLE_ENDIAN
|
||||||
|
#define IS_BIG_ENDIAN 1
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define PR_BYTES_PER_BYTE 1
|
||||||
|
#define PR_BYTES_PER_SHORT 2
|
Loading…
x
Reference in New Issue
Block a user