Make FreeBSD a "first class citizen" among femtolisp's build OSes.
It looks like FreeBSD should do what OpenBSD does in femtolisp's code. The biggest change here (I think) is that of determining the correct value of CC in the Makefile(s). As of version 10, FreeBSD's base compiler is clang; so there is now some logic in the Makefile(s) to determine if the build is occurring on a FreeBSD system >= 10.0. If so, then the value of CC will be "clang"; otherwise, it will be "gcc", as before.
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
CC = gcc
|
||||
FREEBSD-GE-10 = $(shell test `uname` = FreeBSD -a `uname -r | cut -d. -f1` -ge 10 && echo YES)
|
||||
CC = $(if $(FREEBSD-GE-10),clang,gcc)
|
||||
|
||||
NAME = lisp
|
||||
SRC = $(NAME).c
|
||||
|
||||
Reference in New Issue
Block a user