Make cross/ppc-morphos-binutils build on NetBSD
This commit is contained in:
parent
4b6f71331d
commit
802aa60829
3 changed files with 29 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.2 2020/04/26 09:47:41 rillig Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2020/05/10 02:14:18 js Exp $
|
||||
|
||||
DISTNAME= sdk-source-20191111
|
||||
PKGNAME= ppc-morphos-binutils-2.33.1
|
||||
|
@ -31,7 +31,7 @@ post-extract:
|
|||
${RUN} cd ${WRKDIR}/sdk-source/binutils && \
|
||||
${XZCAT} binutils-${PKGVERSION_NOREV}.tar.xz | ${GTAR} xf -
|
||||
|
||||
do-patch:
|
||||
pre-patch:
|
||||
${RUN} cd ${WRKDIR}/sdk-source/binutils && \
|
||||
${PATCH} -p0 <binutils-${PKGVERSION_NOREV}-morphos.diff
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
$NetBSD: distinfo,v 1.1 2020/04/14 20:53:21 js Exp $
|
||||
$NetBSD: distinfo,v 1.2 2020/05/10 02:14:18 js Exp $
|
||||
|
||||
SHA1 (sdk-source-20191111.tar.xz) = 73188877bc83ddf7382f2dcef70c5bc9c631aec6
|
||||
RMD160 (sdk-source-20191111.tar.xz) = b8c01cc4e6caa897672f44426bc3e575abaeddc8
|
||||
SHA512 (sdk-source-20191111.tar.xz) = d201e1a6425d847ec5567939225db402524436398d7961180d2295e69ef8003edaf311df49e89ef0fbefe3a0f6f74935a6d132e58b496e3be1f6136a91aa6634
|
||||
Size (sdk-source-20191111.tar.xz) = 503342768 bytes
|
||||
SHA1 (patch-bfd_sysdep.h) = 03c20efe391160b2a7e3b6fb01e6bdc1107ee49c
|
||||
|
|
25
cross/ppc-morphos-binutils/patches/patch-bfd_sysdep.h
Normal file
25
cross/ppc-morphos-binutils/patches/patch-bfd_sysdep.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
$NetBSD: patch-bfd_sysdep.h,v 1.1 2020/05/10 02:14:18 js Exp $
|
||||
|
||||
--- bfd/sysdep.h.orig 2020-05-10 01:34:09.000000000 +0000
|
||||
+++ bfd/sysdep.h
|
||||
@@ -33,9 +33,6 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
-#if defined(MORPHOS_TARGET) && !defined(__off64_t_defined)
|
||||
-typedef int64_t off64_t;
|
||||
-#endif
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <errno.h>
|
||||
@@ -96,6 +93,10 @@ extern char *strrchr ();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#if defined(MORPHOS_TARGET) && !defined(__off64_t_defined)
|
||||
+typedef int64_t off64_t;
|
||||
+#endif
|
||||
+
|
||||
#ifndef O_RDONLY
|
||||
#define O_RDONLY 0
|
||||
#endif
|
Loading…
Reference in a new issue