commit c22bc6d1abaac63b597fda9ddc6a33c462339e21
Author: Jakub Bogusz <[email protected]>
Date:   Sun Oct 25 21:09:23 2015 +0100

    - added x32 patch, now builds on x32

 dyninst-x32.patch | 11 +++++++++++
 dyninst.spec      |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/dyninst.spec b/dyninst.spec
index ed81ab9..95eabb5 100644
--- a/dyninst.spec
+++ b/dyninst.spec
@@ -10,6 +10,7 @@ Source0:      
http://www.paradyn.org/release%{version}/DyninstAPI-%{version}.tgz
 # Source0-md5: 8441fb98ea610c3ecd4367e2ceab05df
 Patch0:                %{name}-libname.patch
 Patch1:                %{name}-build-symlite.patch
+Patch2:                %{name}-x32.patch
 URL:           http://www.dyninst.org/dyninst
 # libiberty
 BuildRequires: binutils-devel
@@ -23,7 +24,7 @@ BuildRequires:        libxml2-devel >= 2
 BuildRequires: sed >= 4.0
 BuildRequires: texlive-format-pdflatex
 Requires:      libdwarf >= 0.20130126
-ExclusiveArch: %{ix86} %{x8664} ppc ppc64 aarch64
+ExclusiveArch: %{ix86} %{x8664} x32 ppc ppc64 aarch64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -86,6 +87,7 @@ Dokumentacja do bibliotek dyninst.
 %setup -q -n DyninstAPI-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %cmake . \
diff --git a/dyninst-x32.patch b/dyninst-x32.patch
new file mode 100644
index 0000000..86ab55c
--- /dev/null
+++ b/dyninst-x32.patch
@@ -0,0 +1,11 @@
+--- DyninstAPI-9.0.3/stackwalk/src/x86-swk.C.orig      2015-08-26 
18:13:07.000000000 +0200
++++ DyninstAPI-9.0.3/stackwalk/src/x86-swk.C   2015-10-25 20:25:17.942073210 
+0100
+@@ -61,7 +61,7 @@
+      sw_printf("%p%p\n", frame_pointer, &frame_pointer);
+   }
+ 
+-#if defined(arch_x86_64) && (defined(os_linux) || defined(os_freebsd))
++#if defined(arch_x86_64) && !defined(__ILP32__) && (defined(os_linux) || 
defined(os_freebsd))
+   __asm__("mov %%rbp, %0\n"
+         : "=r"(frame_pointer));
+ #elif defined(os_linux) || defined(os_freebsd)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dyninst.git/commitdiff/c22bc6d1abaac63b597fda9ddc6a33c462339e21

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to