unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* RFC: Support for FreeBSD/amd64
@ 2005-10-26 23:52 Giorgos Keramidas
  2005-10-27  3:58 ` Richard M. Stallman
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Giorgos Keramidas @ 2005-10-26 23:52 UTC (permalink / raw)


To bootstrap Emacs on my FreeBSD/amd64 snapshot I had to use the
following patch -- also available at:
http://people.freebsd.org/~keramida/emacs/22/freebsd-amd64.diff

Does this look like a reasonable way to add FreeBSD/amd64 support?
I'm not really sure the amdx86-64.h changes are ok.

%%%
--- emacs.orig/configure.in	Tue Oct 25 04:09:39 2005
+++ emacs/configure.in	Thu Oct 27 02:49:27 2005
@@ -238,6 +238,7 @@
     case "${canonical}" in
       alpha*-*-freebsd*)	machine=alpha ;;
       i[3456]86-*-freebsd*)	machine=intel386 ;;
+      x86_64-*-freebsd*)	machine=amdx86-64 ;;
     esac
   ;;
 
--- emacs.orig/src/m/amdx86-64.h	Sun Aug  7 12:52:27 2005
+++ emacs/src/m/amdx86-64.h	Thu Oct 27 01:29:10 2005
@@ -100,11 +100,23 @@
 /* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
 #undef DATA_SEG_BITS
 
+#ifdef __FreeBSD__
+
+#undef START_FILES
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
+
+#undef LIB_STANDARD
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
+
+#else /* !__FreeBSD__ */
+
 #undef START_FILES
 #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
 
 #undef LIB_STANDARD
 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
+
+#endif /* __FreeBSD__ */
 
 /* arch-tag: 8a5e001d-e12e-4692-a3a6-0b15ba271c6e
    (do not change this comment) */
%%%

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-10-30  3:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-26 23:52 RFC: Support for FreeBSD/amd64 Giorgos Keramidas
2005-10-27  3:58 ` Richard M. Stallman
2005-10-27  6:50 ` Frank Schmitt
2005-10-27 11:50   ` Giorgos Keramidas
2005-10-27 19:08   ` Eli Zaretskii
2005-10-27 20:13     ` Giorgos Keramidas
2005-10-27 20:56     ` Frank Schmitt
2005-10-28 18:09       ` Richard M. Stallman
2005-10-28 22:01         ` Giorgos Keramidas
2005-10-29  5:12           ` Richard M. Stallman
2005-10-29 14:47             ` Giorgos Keramidas
2005-10-30  3:36               ` Richard M. Stallman
2005-10-29 10:07         ` Eli Zaretskii
2005-10-29 18:35           ` Giorgos Keramidas
2005-10-29 20:33           ` Richard M. Stallman
2005-10-27 12:27 ` Dryice Liu
2005-10-27 14:57   ` Giorgos Keramidas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).