changeset 73537:d2f1d227576d

* m/amdx86-64.h: Add defines for OpenBSD x86-64.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 29 Oct 2006 21:48:58 +0000
parents baed64986af0
children e56d78e992d3
files src/ChangeLog src/m/amdx86-64.h
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Oct 29 21:36:17 2006 +0000
+++ b/src/ChangeLog	Sun Oct 29 21:48:58 2006 +0000
@@ -1,3 +1,7 @@
+2006-10-29  Jeramey Crawford  <jeramey@jeramey.com>
+
+	* m/amdx86-64.h: Add defines for OpenBSD x86-64.
+
 2006-10-29  Juanma Barranquero  <lekktu@gmail.com>
 
 	* window.c (Fdisplay_buffer): Fix typo in docstring.
--- a/src/m/amdx86-64.h	Sun Oct 29 21:36:17 2006 +0000
+++ b/src/m/amdx86-64.h	Sun Oct 29 21:48:58 2006 +0000
@@ -118,7 +118,14 @@
 #undef LIB_STANDARD
 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
 
-#else /* !__FreeBSD__ */
+#elif defined(__OpenBSD__)
+
+#undef START_FILES
+#define START_FILES pre-crt0.o /usr/lib/crt0.o /usr/lib/crtbegin.o
+#undef LIB_STANDARD
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
+
+#else /* !__OpenBSD__ && !__FreeBSD__ */
 
 #undef START_FILES
 #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o