# HG changeset patch # User Chong Yidong # Date 1162158538 0 # Node ID d2f1d227576d253aa64c111b543dfa9b20be1543 # Parent baed64986af03238a46accd0465189274619ab6d * m/amdx86-64.h: Add defines for OpenBSD x86-64. diff -r baed64986af0 -r d2f1d227576d src/ChangeLog --- 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 + + * m/amdx86-64.h: Add defines for OpenBSD x86-64. + 2006-10-29 Juanma Barranquero * window.c (Fdisplay_buffer): Fix typo in docstring. diff -r baed64986af0 -r d2f1d227576d src/m/amdx86-64.h --- 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