From be23f2e5b8e490bcf0875587b4dd2a9ba4b2cb89 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sat, 29 Sep 2012 14:02:34 +0000 Subject: [PATCH] - fix building on x86_64 --- bin86-x64.patch | 14 ++++++++++++++ bin86.spec | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 bin86-x64.patch diff --git a/bin86-x64.patch b/bin86-x64.patch new file mode 100644 index 0000000..571dfd9 --- /dev/null +++ b/bin86-x64.patch @@ -0,0 +1,14 @@ +diff -ur bin86-0.16.18.orig/ld/x86_aout.h bin86-0.16.18/ld/x86_aout.h +--- bin86-0.16.18.orig/ld/x86_aout.h 2003-01-28 22:17:14.000000000 +0000 ++++ bin86-0.16.18/ld/x86_aout.h 2012-09-29 14:00:55.188509488 +0000 +@@ -13,7 +13,9 @@ + typedef long Long; + #define __OUT_OK 1 + #else +-typedef char Long[4]; ++#define __OUT_OK 1 ++#include ++typedef int32_t Long; + #endif + + struct exec { /* a.out header */ diff --git a/bin86.spec b/bin86.spec index b00b666..b4f0172 100644 --- a/bin86.spec +++ b/bin86.spec @@ -7,11 +7,12 @@ Summary(pt_BR.UTF-8): Assembler e Linker para modo real 80x86 Summary(tr.UTF-8): Gerçek kip 80x86 çeviricisi ve bağlayıcısı Name: bin86 Version: 0.16.18 -Release: 1 +Release: 2 License: GPL Group: Development/Languages Source0: http://www.debath.co.uk/dev86/%{name}-%{version}.tar.gz # Source0-md5: 914068fb649b93642d1cf21857b75699 +Patch0: %{name}-x64.patch URL: http://www.debath.co.uk/ Obsoletes: dev86 ExclusiveArch: %{ix86} %{x8664} @@ -60,6 +61,9 @@ programlar, bu pakete gereksinim duyarlar. %prep %setup -q +%ifarch %{x8664} +%patch0 -p1 +%endif %build %{__make} \ -- 2.43.0