1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Add Marcel's patches for Alpha support. I could only check that these

patches apply without error. I don't have an Alpha to test on, but I assume
that Marcel knows what he's doing.

PR:		addendum to 14916
Submitted by:	marcel
Approved by:	the maintainer
This commit is contained in:
Gary Jennejohn 1999-11-18 20:56:15 +00:00
parent 6900279156
commit 7e477f978b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=23186
9 changed files with 129 additions and 0 deletions

View File

@ -1,5 +1,12 @@
--- configure~ Fri Oct 8 15:34:48 1999
+++ configure Fri Oct 8 15:36:43 1999
@@ -1038,6 +1038,7 @@
case "$canonical" in
*-*-linux* ) opsys=linux ;;
+ *-*-freebsd* ) opsys=freebsd ;;
*-*-netbsd* ) opsys=netbsd ;;
*-*-openbsd* ) opsys=openbsd ;;
@@ -11108,7 +11108,7 @@
if test "$with_database_berkdb" != "no"; then
echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6

View File

@ -0,0 +1,19 @@
--- ./src/s/freebsd.h~ Sun Sep 27 09:59:20 1998
+++ ./src/s/freebsd.h Tue Nov 2 10:25:48 1999
@@ -54,10 +54,15 @@
#include <stddef.h>
#endif
#define LD_SWITCH_SYSTEM
+#ifdef __alpha__
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
+#else
#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
-#define UNEXEC unexelf.o
#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
+#endif
#define LINKER "$(CC) -nostdlib"
+#define UNEXEC unexelf.o
#undef LIB_GCC
#define LIB_GCC

View File

@ -0,0 +1,17 @@
--- ./src/unexelf.c~ Sun Aug 15 03:29:56 1999
+++ ./src/unexelf.c Tue Nov 2 10:24:55 1999
@@ -515,6 +515,14 @@
# include <sys/exec_elf.h>
#endif
+#if defined(__FreeBSD__) && defined(__alpha__)
+# ifdef __STDC__
+# define ElfW(type) Elf64_##type
+# else
+# define ElfW(type) Elf64_/**/type
+# endif
+#endif
+
#if __GNU_LIBRARY__ - 0 >= 6
# include <link.h> /* get ElfW etc */
#endif

View File

@ -1,5 +1,12 @@
--- configure~ Fri Oct 8 15:34:48 1999
+++ configure Fri Oct 8 15:36:43 1999
@@ -1038,6 +1038,7 @@
case "$canonical" in
*-*-linux* ) opsys=linux ;;
+ *-*-freebsd* ) opsys=freebsd ;;
*-*-netbsd* ) opsys=netbsd ;;
*-*-openbsd* ) opsys=openbsd ;;
@@ -11108,7 +11108,7 @@
if test "$with_database_berkdb" != "no"; then
echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6

View File

@ -0,0 +1,19 @@
--- ./src/s/freebsd.h~ Sun Sep 27 09:59:20 1998
+++ ./src/s/freebsd.h Tue Nov 2 10:25:48 1999
@@ -54,10 +54,15 @@
#include <stddef.h>
#endif
#define LD_SWITCH_SYSTEM
+#ifdef __alpha__
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
+#else
#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
-#define UNEXEC unexelf.o
#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
+#endif
#define LINKER "$(CC) -nostdlib"
+#define UNEXEC unexelf.o
#undef LIB_GCC
#define LIB_GCC

View File

@ -0,0 +1,17 @@
--- ./src/unexelf.c~ Sun Aug 15 03:29:56 1999
+++ ./src/unexelf.c Tue Nov 2 10:24:55 1999
@@ -515,6 +515,14 @@
# include <sys/exec_elf.h>
#endif
+#if defined(__FreeBSD__) && defined(__alpha__)
+# ifdef __STDC__
+# define ElfW(type) Elf64_##type
+# else
+# define ElfW(type) Elf64_/**/type
+# endif
+#endif
+
#if __GNU_LIBRARY__ - 0 >= 6
# include <link.h> /* get ElfW etc */
#endif

View File

@ -1,5 +1,12 @@
--- configure~ Fri Oct 8 15:34:48 1999
+++ configure Fri Oct 8 15:36:43 1999
@@ -1038,6 +1038,7 @@
case "$canonical" in
*-*-linux* ) opsys=linux ;;
+ *-*-freebsd* ) opsys=freebsd ;;
*-*-netbsd* ) opsys=netbsd ;;
*-*-openbsd* ) opsys=openbsd ;;
@@ -11108,7 +11108,7 @@
if test "$with_database_berkdb" != "no"; then
echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6

View File

@ -0,0 +1,19 @@
--- ./src/s/freebsd.h~ Sun Sep 27 09:59:20 1998
+++ ./src/s/freebsd.h Tue Nov 2 10:25:48 1999
@@ -54,10 +54,15 @@
#include <stddef.h>
#endif
#define LD_SWITCH_SYSTEM
+#ifdef __alpha__
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
+#else
#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
-#define UNEXEC unexelf.o
#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
+#endif
#define LINKER "$(CC) -nostdlib"
+#define UNEXEC unexelf.o
#undef LIB_GCC
#define LIB_GCC

View File

@ -0,0 +1,17 @@
--- ./src/unexelf.c~ Sun Aug 15 03:29:56 1999
+++ ./src/unexelf.c Tue Nov 2 10:24:55 1999
@@ -515,6 +515,14 @@
# include <sys/exec_elf.h>
#endif
+#if defined(__FreeBSD__) && defined(__alpha__)
+# ifdef __STDC__
+# define ElfW(type) Elf64_##type
+# else
+# define ElfW(type) Elf64_/**/type
+# endif
+#endif
+
#if __GNU_LIBRARY__ - 0 >= 6
# include <link.h> /* get ElfW etc */
#endif