0.9.18.46:
[sbcl.git] / src / runtime / Config.x86-linux
1 # -*- makefile -*- for the C-level run-time support for SBCL
2
3 # This software is part of the SBCL system. See the README file for
4 # more information.
5 #
6 # This software is derived from the CMU CL system, which was
7 # written at Carnegie Mellon University and released into the
8 # public domain. The software is in the public domain and is
9 # provided with absolutely no warranty. See the COPYING and CREDITS
10 # files for more information.
11
12 NM = ./linux-nm
13
14 ASSEM_SRC = x86-assem.S ldso-stubs.S
15 ARCH_SRC = x86-arch.c
16 OS_SRC = linux-os.c x86-linux-os.c
17
18 # The "--Wl,--export-dynamic" flags are here to help people
19 # experimenting with callbacks from C to SBCL, by allowing linkage to
20 # SBCL src/runtime/*.c symbols from C. Work on this is good, but it's
21 # definitely bleeding edge and not particularly stable. In particular,
22 # not only are the workarounds for the GC relocating Lisp code and
23 # data unstable, but even the basic calling convention might end up
24 # being unstable. Unless you want to do some masochistic maintenance
25 # work when new releases of SBCL come out, please don't try to build
26 # real code on this until a coherent stable interface has been added.
27 # (You *are* encouraged to design and implement a coherent stable
28 # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
29 # working on one and it would be a nice thing to have.)
30 LINKFLAGS += -Wl,--export-dynamic
31 OS_LIBS = -ldl
32
33 CFLAGS += $(shell if grep LISP_FEATURE_LARGEFILE genesis/config.h \
34                       > /dev/null 2>&1; \
35                   then echo "-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
36                              -D_FILE_OFFSET_BITS=64"; fi)
37
38 OS_LIBS += $(shell if grep LISP_FEATURE_SB_THREAD genesis/config.h \
39                       > /dev/null 2>&1; \
40                    then echo "-lpthread"; fi)
41
42 GC_SRC = gencgc.c
43
44 # Nothing to do for after-grovel-headers.
45 .PHONY: after-grovel-headers
46 after-grovel-headers: