- Allow build on amd64

PR:		ports/132728
Submitted by:	Jose M. Alcaide <jose@we.lc.ehu.es>
This commit is contained in:
Pav Lucistnik 2009-03-19 17:03:25 +00:00
parent d346a3f4f6
commit 8070eecf12
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230418
2 changed files with 43 additions and 4 deletions

View File

@ -15,7 +15,7 @@ MASTER_SITE_SUBDIR= devel/lang/assemblers
MAINTAINER= ports@FreeBSD.org
COMMENT= Assembler for a variety of microcontrollers/-processors
ONLY_FOR_ARCHS= i386 alpha
ONLY_FOR_ARCHS= i386 alpha amd64
MAN1= asl.1 p2bin.1 p2hex.1 pbind.1 plist.1

View File

@ -1,6 +1,6 @@
--- sysdefs.h.orig Mon May 31 11:30:28 1999
+++ sysdefs.h Mon May 31 11:34:47 1999
@@ -514,6 +514,26 @@
--- sysdefs.h.orig 1998-11-03 23:12:15.000000000 +0100
+++ sysdefs.h 2009-03-17 14:25:05.000000000 +0100
@@ -524,6 +524,26 @@
#define LOCALE_NLS
#endif
@ -27,3 +27,42 @@
#endif /* __alpha */
/*===========================================================================*/
@@ -725,6 +745,38 @@
#endif /* __i386 */
/*===========================================================================*/
+/* AMD opteron/athlon64/k8 platforms */
+
+#ifdef __amd64__
+
+#define ARCHPRNAME "amd64"
+
+/*---------------------------------------------------------------------------*/
+/* amd64 with FreeBSD and GCC: */
+
+#ifdef __FreeBSD__
+#define ARCHSYSNAME "unknown-freebsd"
+#define DEFSMADE
+#define OPENRDMODE "r"
+#define OPENWRMODE "w"
+#define OPENUPMODE "r+"
+#define IEEEFLOAT
+typedef signed char Integ8;
+typedef unsigned char Card8;
+typedef signed short Integ16;
+typedef unsigned short Card16;
+#define HAS16
+typedef signed int Integ32;
+typedef unsigned int Card32;
+typedef signed long Integ64;
+typedef unsigned long Card64;
+#define HAS64
+#define LOCALE_NLS
+#endif
+
+#endif /* __amd64__ */
+
+/*===========================================================================*/
/* Misc... */
/*---------------------------------------------------------------------------*/