Skip to content
Snippets Groups Projects
Commit bab9733f authored by rtoy's avatar rtoy
Browse files

Build support for FreeBSD, based on patches from Eduardo Munoz.

code/bsd-os.lisp:
o Automatically define :freebsd4 and :elf, if compiling lisp has them
  defined.

tools/create-target.sh:
o Support FreeBSD.

tools/setenv-scripts/freebsd-features.lisp:
o New file with default (commented out) example for FreeBSD.
parent 524665d4
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/bsd-os.lisp,v 1.7 2004/07/25 19:32:37 pmai Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/bsd-os.lisp,v 1.8 2005/07/13 13:40:55 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -31,6 +31,11 @@
#+Darwin :Darwin
#-(or FreeBSD NetBSD OpenBSD Darwin) :bsd)
#+freebsd4
(register-lisp-feature :freebsd4)
#+elf
(register-lisp-feature :elf)
(setq *software-type* #+OpenBSD "OpenBSD"
#+NetBSD "NetBSD"
#+FreeBSD "FreeBSD"
......
......@@ -117,6 +117,13 @@ case $LISP_VARIANT in
esac
sed "s;@@gcname@@;$gcname;" $SETENV/openbsd-features.lisp >> $TARGET/setenv.lisp
;;
*FreeBSD*)
case $LISP_VARIANT in
*_gencgc*) gcname=":gencgc" ;;
*) gcname=":cgc" ;;
esac
sed "s;@@gcname@@;$gcname;" $SETENV/freebsd-features.lisp >> $TARGET/setenv.lisp
;;
*solaris*)
cat $SETENV/solaris-features.lisp >> $TARGET/setenv.lisp
;;
......
;; e.g. for FreeBSD on x86 you probably want:
;;(pushnew :freebsd4 *features*)
;;(pushnew :freebsd *features*)
;;(pushnew :elf *features*)
;; We can't really do this before adding #+freebsd5 reader
;; conditionals to the source code at appropiate places
;; (setf *features* (remove :freebsd4 *features*))
;; (pushnew :freebsd5 *features*)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment