[Git][cmucl/cmucl][master] Add support for compiling with clang on x86/linux

Raymond Toy rtoy at common-lisp.net
Sat Aug 25 23:52:12 UTC 2018


Raymond Toy pushed to branch master at cmucl / cmucl


Commits:
82bf2c72 by Raymond Toy at 2018-08-25T23:51:54Z
Add support for compiling with clang on x86/linux

Add `Config.x86_linux_clang` to use clang instead of gcc to build
cmucl.  update `create-target.sh` so that it sets the motif variant
correctly when using `Config.x86_linux_clang`

See issue #68.

With this config, Fedora 28 successfully builds cmucl and passes all
the tests.

- - - - -


2 changed files:

- bin/create-target.sh
- + src/lisp/Config.x86_linux_clang


Changes:

=====================================
bin/create-target.sh
=====================================
@@ -83,7 +83,7 @@ case $uname_s in
 		hp700*) motif_variant=hpux_cc ;;
 		pmax_mach) motif_variant=pmax_mach ;;
 		sgi*) motif_variant=irix ;;
-		x86_linux|linux*) motif_variant=x86 ;;
+		x86_linux*|linux*) motif_variant=x86 ;;
 	    esac
 	}
 	[ -f src/motif/server/Config.$motif_variant ] || quit "No such motif-variant could be found: Config.$motif_variant"


=====================================
src/lisp/Config.x86_linux_clang
=====================================
@@ -0,0 +1,15 @@
+# -*- Mode: makefile -*-
+include Config.x86_common
+
+CC = clang
+CPPFLAGS += -m32 -D__NO_CTYPE -D_GNU_SOURCE
+CFLAGS += -march=pentium4 -mfpmath=sse -mtune=generic
+
+UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
+ASSEM_SRC +=  linux-stubs.S
+OS_SRC += Linux-os.c elf.c
+OS_LIBS = -ldl
+OS_LINK_FLAGS = -m32 -rdynamic -Xlinker --export-dynamic -Xlinker -Map -Xlinker foo
+OS_LINK_FLAGS += -Wl,-z,noexecstack
+
+EXEC_FINAL_OBJ = exec-final.o



View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/82bf2c727ba1d3c461fa360aaae176608eb9349b

-- 
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/82bf2c727ba1d3c461fa360aaae176608eb9349b
You're receiving this email because of your account on gitlab.common-lisp.net.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20180825/fc83d4c5/attachment.html>


More information about the cmucl-cvs mailing list