--- /dev/null
+--- dev86-0.16.12/ar/ar.c.orig 2002-03-26 08:24:53.000000000 +0100
++++ dev86-0.16.12/ar/ar.c 2003-08-08 22:31:48.000000000 +0200
+@@ -31,6 +31,7 @@
+ #include <sys/stat.h>
+ #include "ar.h"
+ #include "rel_aout.h"
++#include <errno.h>
+
+ #ifdef __BCC__
+ #define HAVE_RENAME
+@@ -44,8 +45,6 @@
+ #undef HAVE_FSYNC
+ #endif
+
+-extern int errno;
+-
+ #ifdef __GNUC__
+ # ifndef alloca
+ # define alloca __builtin_alloca
+@@ -67,7 +66,6 @@
+ /* Locking is normally disabled because fcntl hangs on the Sun
+ and it isn't supported properly across NFS anyway. */
+ #ifdef LOCKS
+-#include <errno.h>
+ #endif
+
+ /* This structure is used internally to represent the info
Summary: Bruce's C compiler
Summary(pl): Kompilator C Bruce'a
Name: bcc
-Version: 0.16.11
+Version: 0.16.12
Release: 1
License: GPL
Group: Development/Languages
Source0: http://www.cix.co.uk/~mayday/dev86/Dev86src-%{version}.tar.gz
-# Source0-md5: 7139cf3f48a3836672cf229162bf36b8
+# Source0-md5: 623480d77b685b1e7c762df04ad5e154
Patch0: Dev86src-noroot.patch
Patch1: Dev86src-nobcc.patch
Patch2: Dev86src-opt.patch
+Patch3: Dev86src-errno.patch
URL: http://www.cix.co.uk/~mayday/
Requires: bin86
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
-CC="%{__cc}" %{__make} all other OPT="%{rpmcflags}" <<!FooBar!
+CC="%{__cc}" \
+%{__make} all other \
+ OPT="%{rpmcflags}" <<!FooBar!
5
quit
!FooBar!
DIST=$RPM_BUILD_ROOT
install $RPM_BUILD_ROOT/lib/elksemu $RPM_BUILD_ROOT%{_bindir}
-#rm -rf $RPM_BUILD_ROOT/lib/
cp -R libc/kinclude $RPM_BUILD_ROOT%{_libdir}/bcc
ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/nm86