]> git.pld-linux.org Git - packages/ocaml-zarith.git/commitdiff
- added x32 patch (adjust asm arch detection for x32 ABI); release 2 auto/th/ocaml-zarith-1.9.1-2
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 28 Dec 2019 14:48:28 +0000 (15:48 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 28 Dec 2019 14:48:28 +0000 (15:48 +0100)
ocaml-zarith-x32.patch [new file with mode: 0644]
ocaml-zarith.spec

diff --git a/ocaml-zarith-x32.patch b/ocaml-zarith-x32.patch
new file mode 100644 (file)
index 0000000..a0f65c0
--- /dev/null
@@ -0,0 +1,15 @@
+--- Zarith-release-1.9.1/configure.orig        2019-08-28 16:17:04.000000000 +0200
++++ Zarith-release-1.9.1/configure     2019-12-28 15:42:01.220520989 +0100
+@@ -323,7 +323,11 @@
+             arch='x86_64'
+         fi
+         ;;
+-    i486-*linux-gnu|i686-*linux-gnu|i486-kfreebsd-gnu)
++    x86_64-*linux-gnux32)
++        ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
++        arch='x86_64'
++        ;;
++    i[456]86-*linux-gnu|iathlon-*linux-gnu|i486-kfreebsd-gnu)
+         ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
+         arch='i686';;
+     i686-*cygwin)
index 9f6747998d6b41ae6b7e0fc8197415d69bda3a85..bf7d764d8e8c9b959162ace51e8f0aab133d8974 100644 (file)
@@ -12,12 +12,13 @@ Summary:    Zarith: arbitrary-precision integers
 Summary(pl.UTF-8):     Zarith - liczby całkowite dowolnej precyzji
 Name:          ocaml-zarith
 Version:       1.9.1
 Summary(pl.UTF-8):     Zarith - liczby całkowite dowolnej precyzji
 Name:          ocaml-zarith
 Version:       1.9.1
-Release:       1
+Release:       2
 License:       LGPL v2 with linking exception
 Group:         Applications/Math
 #Source0Download: https://github.com/ocaml/Zarith/releases
 Source0:       https://github.com/ocaml/Zarith/archive/release-%{version}/Zarith-%{version}.tar.gz
 # Source0-md5: af41b7534a4c91a8f774f04e307c1c66
 License:       LGPL v2 with linking exception
 Group:         Applications/Math
 #Source0Download: https://github.com/ocaml/Zarith/releases
 Source0:       https://github.com/ocaml/Zarith/archive/release-%{version}/Zarith-%{version}.tar.gz
 # Source0-md5: af41b7534a4c91a8f774f04e307c1c66
+Patch0:                %{name}-x32.patch
 URL:           http://github.com/ocaml/Zarith
 BuildRequires: bash
 BuildRequires: gmp-devel
 URL:           http://github.com/ocaml/Zarith
 BuildRequires: bash
 BuildRequires: gmp-devel
@@ -57,10 +58,13 @@ przy użyciu biblioteki Zarith.
 
 %prep
 %setup -q -n Zarith-release-%{version}
 
 %prep
 %setup -q -n Zarith-release-%{version}
+%patch0 -p1
 
 %build
 
 %build
+CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
 ./configure \
 CFLAGS="%{rpmcflags}" \
 ./configure \
+       -host %{_target_platform} \
        -installdir $RPM_BUILD_ROOT%{_libdir}/ocaml \
        -gmp
 
        -installdir $RPM_BUILD_ROOT%{_libdir}/ocaml \
        -gmp
 
This page took 0.056764 seconds and 4 git commands to generate.