Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 357615
Collapse All | Expand All

(-)a/contrib/asdf-module.mk (-1 / +8 lines)
Lines 1-3 Link Here
1
# -*- makefile -*- included by contribs built with ASDF
2
1
CC=gcc
3
CC=gcc
2
4
3
# We need to extend flags to the C compiler and the linker
5
# We need to extend flags to the C compiler and the linker
Lines 7-12 CC=gcc Link Here
7
# directly via ASDF from a non-C-aware module which has these tricky
9
# directly via ASDF from a non-C-aware module which has these tricky
8
# ones as dependencies.
10
# ones as dependencies.
9
11
12
# from src/runtime/
13
-include platform.mk
14
10
UNAME:=$(shell uname -s)
15
UNAME:=$(shell uname -s)
11
16
12
ifeq (SunOS,$(UNAME))
17
ifeq (SunOS,$(UNAME))
Lines 21-27 ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME))) Link Here
21
  CC:=$(shell cygpath -m $(shell readlink -fn $(shell which $(CC))))
26
  CC:=$(shell cygpath -m $(shell readlink -fn $(shell which $(CC))))
22
endif
27
endif
23
28
24
export CC SBCL EXTRA_CFLAGS EXTRA_LDFLAGS
29
EXTRA_CFLAGS += $(CFLAGS)
30
31
export CC SBCL EXTRA_CFLAGS
25
32
26
all: $(EXTRA_ALL_TARGETS)
33
all: $(EXTRA_ALL_TARGETS)
27
	$(MAKE) -C ../asdf
34
	$(MAKE) -C ../asdf
(-)a/contrib/vanilla-module.mk (+4 lines)
Lines 1-3 Link Here
1
# -*- makefile -*- included by contribs that don't use ASDF
2
3
# from src/runtime/
4
-include platform.mk
1
5
2
$(MODULE).fasl: $(MODULE).lisp ../../output/sbcl.core
6
$(MODULE).fasl: $(MODULE).lisp ../../output/sbcl.core
3
	$(SBCL) --eval '(compile-file (format nil "SYS:CONTRIB;~:@(~A~);~:@(~A~).LISP" "$(MODULE)" "$(MODULE)"))' </dev/null
7
	$(SBCL) --eval '(compile-file (format nil "SYS:CONTRIB;~:@(~A~);~:@(~A~).LISP" "$(MODULE)" "$(MODULE)"))' </dev/null
(-)a/make-target-contrib.sh (-1 / +1 lines)
Lines 62-68 for i in contrib/*; do Link Here
62
    # export INSTALL_DIR=$SBCL_HOME/`basename $i `
62
    # export INSTALL_DIR=$SBCL_HOME/`basename $i `
63
    test -f $i/test-passed && rm $i/test-passed
63
    test -f $i/test-passed && rm $i/test-passed
64
    # hack to get exit codes right.
64
    # hack to get exit codes right.
65
    if $GNUMAKE -C $i test 2>&1 && touch $i/test-passed ; then
65
    if $GNUMAKE -C $i -I ../../src/runtime test 2>&1 && touch $i/test-passed ; then
66
	:
66
	:
67
    else
67
    else
68
	exit $?
68
	exit $?
(-)a/src/runtime/Config.alpha-linux (-1 / +1 lines)
Lines 10-16 Link Here
10
# files for more information.
10
# files for more information.
11
11
12
LD = ld -taso
12
LD = ld -taso
13
LINKFLAGS += -dynamic -v -Wl,-T -Wl,ld-script.alpha-linux -rdynamic
13
LDFLAGS += -dynamic -v -Wl,-T -Wl,ld-script.alpha-linux -rdynamic
14
NM = ./linux-nm
14
NM = ./linux-nm
15
15
16
ASSEM_SRC = alpha-assem.S ldso-stubs.S
16
ASSEM_SRC = alpha-assem.S ldso-stubs.S
(-)a/src/runtime/Config.alpha-osf1 (-3 / +2 lines)
Lines 9-19 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
CFLAGS += -Dosf1 -O0 -g -D_XOPEN_SOURCE=500 -D_OSF_SOURCE=500
12
CFLAGS += -Dosf1 -O0 -D_XOPEN_SOURCE=500 -D_OSF_SOURCE=500 -msg_disable newlocale
13
CFLAGS += -msg_disable newlocale
14
ASFLAGS += -Dosf1 #-ULANGUAGE_ASSEMBLY
13
ASFLAGS += -Dosf1 #-ULANGUAGE_ASSEMBLY
15
LD = ld -xtaso
14
LD = ld -xtaso
16
LINKFLAGS = -non_shared # dynamic -v -g  -Wl,-T  -Wl,ld-script.alpha-linux
15
LDFLAGS += -non_shared # dynamic -v -g  -Wl,-T  -Wl,ld-script.alpha-linux
17
# Digital^WCompaq^WHP's cc declares `static inline' functions to exist
16
# Digital^WCompaq^WHP's cc declares `static inline' functions to exist
18
# in multiple places in the binary; we add the '-g' flag to suppress all
17
# in multiple places in the binary; we add the '-g' flag to suppress all
19
# internal (i.e. static) function names being spat out.  GENESIS
18
# internal (i.e. static) function names being spat out.  GENESIS
(-)a/src/runtime/Config.hppa-hpux (-1 / +1 lines)
Lines 9-15 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
LINKFLAGS += -v
12
LDFLAGS += -v
13
# avoid native tools
13
# avoid native tools
14
NM = /usr/local/bin/nm
14
NM = /usr/local/bin/nm
15
CC = /usr/local/bin/gcc
15
CC = /usr/local/bin/gcc
(-)a/src/runtime/Config.hppa-linux (-1 / +1 lines)
Lines 9-15 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
LINKFLAGS += -v -static
12
LDFLAGS += -v -static
13
NM = ./linux-nm
13
NM = ./linux-nm
14
14
15
ASSEM_SRC = hppa-assem.S #hppa-linux-stubs.S
15
ASSEM_SRC = hppa-assem.S #hppa-linux-stubs.S
(-)a/src/runtime/Config.mips-linux (-1 / +1 lines)
Lines 9-15 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
LINKFLAGS += -v -O2 -Wl,--export-dynamic
12
LDFLAGS += -v -O2 -Wl,--export-dynamic
13
NM = ./linux-nm
13
NM = ./linux-nm
14
14
15
ASSEM_SRC = mips-assem.S ldso-stubs.S
15
ASSEM_SRC = mips-assem.S ldso-stubs.S
(-)a/src/runtime/Config.ppc-darwin (-2 / +2 lines)
Lines 9-16 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4
12
CFLAGS += -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4
13
LINKFLAGS += -mmacosx-version-min=10.4
13
LDFLAGS += -mmacosx-version-min=10.4
14
14
15
OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c
15
OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c
16
16
(-)a/src/runtime/Config.ppc-linux (-2 / +1 lines)
Lines 9-16 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
CFLAGS = -g
12
LDFLAGS += -v -rdynamic
13
LINKFLAGS += -v -rdynamic
14
NM = ./linux-nm
13
NM = ./linux-nm
15
14
16
ASSEM_SRC = ppc-assem.S ldso-stubs.S
15
ASSEM_SRC = ppc-assem.S ldso-stubs.S
(-)a/src/runtime/Config.ppc-netbsd (-2 / +2 lines)
Lines 9-16 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
LINKFLAGS += -dynamic -export-dynamic
12
LDFLAGS += -dynamic -export-dynamic
13
CFLAGS =  -g -Wall -O2
13
CFLAGS += -O2
14
14
15
ASSEM_SRC = ppc-assem.S ldso-stubs.S
15
ASSEM_SRC = ppc-assem.S ldso-stubs.S
16
ARCH_SRC = ppc-arch.c
16
ARCH_SRC = ppc-arch.c
(-)a/src/runtime/Config.sparc-linux (-2 / +1 lines)
Lines 9-16 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
ASFLAGS = -g -Wall
12
LDFLAGS += -v -rdynamic
13
LINKFLAGS += -v -rdynamic
14
NM = ./linux-nm
13
NM = ./linux-nm
15
14
16
ASSEM_SRC = sparc-assem.S ldso-stubs.S
15
ASSEM_SRC = sparc-assem.S ldso-stubs.S
(-)a/src/runtime/Config.sparc-netbsd (-2 / +2 lines)
Lines 10-17 Link Here
10
# files for more information.
10
# files for more information.
11
11
12
CC = gcc
12
CC = gcc
13
CFLAGS += -g -Wall -O2
13
CFLAGS += -O2
14
LINKFLAGS += -v
14
LDFLAGS += -v
15
NM = nm -t x -p
15
NM = nm -t x -p
16
16
17
ASSEM_SRC = sparc-assem.S ldso-stubs.S
17
ASSEM_SRC = sparc-assem.S ldso-stubs.S
(-)a/src/runtime/Config.sparc-sunos (-2 / +2 lines)
Lines 11-18 Link Here
11
11
12
CC = gcc
12
CC = gcc
13
CFLAGS += -DSVR4 -D_REENTRANT
13
CFLAGS += -DSVR4 -D_REENTRANT
14
ASFLAGS = -g -Wall -DSVR4
14
ASFLAGS += -DSVR4
15
LINKFLAGS += -v
15
LDFLAGS += -v
16
NM = nm -t x -p 
16
NM = nm -t x -p 
17
17
18
ASSEM_SRC = sparc-assem.S ldso-stubs.S
18
ASSEM_SRC = sparc-assem.S ldso-stubs.S
(-)a/src/runtime/Config.x86-64-darwin (-5 / +7 lines)
Lines 9-21 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
CFLAGS = -g -Wall -O2 -fdollars-in-identifiers
12
CFLAGS += -arch x86_64 -O2 -fdollars-in-identifier
13
LDFLAGS += -arch x86_64
14
13
ifdef LISP_FEATURE_DARWIN9_OR_BETTER
15
ifdef LISP_FEATURE_DARWIN9_OR_BETTER
14
CFLAGS += -mmacosx-version-min=10.5
16
CFLAGS += -mmacosx-version-min=10.5
15
LINKFLAGS += -mmacosx-version-min=10.5
17
LDFLAGS += -mmacosx-version-min=10.5
16
else
18
else
17
CFLAGS += -mmacosx-version-min=10.4
19
CFLAGS += -mmacosx-version-min=10.4
18
LINKFLAGS += -mmacosx-version-min=10.4
20
LDFLAGS += -mmacosx-version-min=10.4
19
endif
21
endif
20
ifdef LISP_FEATURE_INODE64
22
ifdef LISP_FEATURE_INODE64
21
CFLAGS += -D_DARWIN_USE_64_BIT_INODE
23
CFLAGS += -D_DARWIN_USE_64_BIT_INODE
Lines 31-39 endif Link Here
31
ASSEM_SRC = x86-64-assem.S ldso-stubs.S
33
ASSEM_SRC = x86-64-assem.S ldso-stubs.S
32
ARCH_SRC = x86-64-arch.c
34
ARCH_SRC = x86-64-arch.c
33
35
34
LINKFLAGS += -arch x86_64 -dynamic -twolevel_namespace -bind_at_load -pagezero_size 0x100000
36
LDFLAGS += -dynamic -twolevel_namespace -bind_at_load -pagezero_size 0x100000
35
37
36
CFLAGS += -arch x86_64 -fno-omit-frame-pointer -pagezero_size 0x100000
38
CFLAGS += -fno-omit-frame-pointer -pagezero_size 0x100000
37
39
38
GC_SRC = gencgc.c
40
GC_SRC = gencgc.c
39
41
(-)a/src/runtime/Config.x86-64-freebsd (-2 / +2 lines)
Lines 13-23 include Config.x86-64-bsd Link Here
13
13
14
ASSEM_SRC += ldso-stubs.S
14
ASSEM_SRC += ldso-stubs.S
15
15
16
# Until sbcl-0.6.7.3, we used "LINKFLAGS+=-static" here, which
16
# Until sbcl-0.6.7.3, we used "LDFLAGS+=-static" here, which
17
# worked fine for most things, but LOAD-FOREIGN & friends require
17
# worked fine for most things, but LOAD-FOREIGN & friends require
18
# dlopen() etc., which in turn depend on dynamic linking of the
18
# dlopen() etc., which in turn depend on dynamic linking of the
19
# runtime.
19
# runtime.
20
LINKFLAGS += -dynamic -export-dynamic
20
LDFLAGS += -dynamic -export-dynamic
21
21
22
# use libthr (1:1 threading).  libpthread (m:n threading) does not work.
22
# use libthr (1:1 threading).  libpthread (m:n threading) does not work.
23
ifdef LISP_FEATURE_SB_THREAD
23
ifdef LISP_FEATURE_SB_THREAD
(-)a/src/runtime/Config.x86-64-netbsd (-5 lines)
Lines 14-22 include Config.x86-64-bsd Link Here
14
ASSEM_SRC += ldso-stubs.S
14
ASSEM_SRC += ldso-stubs.S
15
OS_LIBS += -lutil
15
OS_LIBS += -lutil
16
16
17
# XXX why do all the other Configs set LINKFLAGS instead of LDFLAGS?
18
# LINKFLAGS is only used in src/runtime/GNUmakefile, this causes the
19
# dladdr test in tools-for-build/ to fail.
20
21
LINKFLAGS += -export-dynamic
22
LDFLAGS += -export-dynamic
17
LDFLAGS += -export-dynamic
(-)a/src/runtime/Config.x86-64-openbsd (-5 lines)
Lines 14-22 include Config.x86-64-bsd Link Here
14
ASSEM_SRC += ldso-stubs.S
14
ASSEM_SRC += ldso-stubs.S
15
OS_LIBS += -lutil
15
OS_LIBS += -lutil
16
16
17
# XXX why do all the other Configs set LINKFLAGS instead of LDFLAGS?
18
# LINKFLAGS is only used in src/runtime/GNUmakefile, this causes the
19
# dladdr test in tools-for-build/ to fail.
20
21
LINKFLAGS += -export-dynamic
22
LDFLAGS += -export-dynamic
17
LDFLAGS += -export-dynamic
(-)a/src/runtime/Config.x86-64-sunos (-5 / +5 lines)
Lines 1-14 Link Here
1
CC=gcc
1
CC=gcc
2
CFLAGS = -m64 -g -O2 -Wall -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT -fno-omit-frame-pointer
2
CFLAGS += -m64 -O2 -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT -fno-omit-frame-pointer
3
ASFLAGS = -m64 -Wall
3
ASFLAGS += -m64
4
LD = ld
4
LD = ld
5
LINKFLAGS = -m64 -g
5
LDFLAGS += -m64 -g
6
NM = nm -xgp
6
NM = nm -xgp
7
GREP = ggrep
7
GREP = ggrep
8
8
9
#CC=/opt/SunStudioExpress/bin/cc
9
#CC=/opt/SunStudioExpress/bin/cc
10
#CFLAGS = -xarch=generic64 -g -O2 -Wall -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT -fno-omit-frame-pointer
10
#CFLAGS += -xarch=generic64 -g -O2 -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT -fno-omit-frame-pointer
11
#ASFLAGS = -xarch=generic64 -Wall
11
#ASFLAGS += -xarch=generic64
12
12
13
ASSEM_SRC = x86-64-assem.S ldso-stubs.S
13
ASSEM_SRC = x86-64-assem.S ldso-stubs.S
14
ARCH_SRC = x86-64-arch.c
14
ARCH_SRC = x86-64-arch.c
(-)a/src/runtime/Config.x86-darwin (-4 / +5 lines)
Lines 9-22 Link Here
9
# provided with absolutely no warranty. See the COPYING and CREDITS
9
# provided with absolutely no warranty. See the COPYING and CREDITS
10
# files for more information.
10
# files for more information.
11
11
12
CFLAGS = -arch i386 -g -Wall -O2 -fdollars-in-identifiers
12
CFLAGS += -arch i386 -g -Wall -O2 -fdollars-in-identifiers
13
LINKFLAGS += -arch i386
13
LDFLAGS += -arch i386
14
14
ifdef LISP_FEATURE_DARWIN9_OR_BETTER
15
ifdef LISP_FEATURE_DARWIN9_OR_BETTER
15
CFLAGS += -mmacosx-version-min=10.5
16
CFLAGS += -mmacosx-version-min=10.5
16
LINKFLAGS += -mmacosx-version-min=10.5
17
LDFLAGS += -mmacosx-version-min=10.5
17
else
18
else
18
CFLAGS += -mmacosx-version-min=10.4
19
CFLAGS += -mmacosx-version-min=10.4
19
LINKFLAGS += -mmacosx-version-min=10.4
20
LDFLAGS += -mmacosx-version-min=10.4
20
endif
21
endif
21
22
22
OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c
23
OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c
(-)a/src/runtime/Config.x86-freebsd (-2 / +2 lines)
Lines 13-23 include Config.x86-bsd Link Here
13
13
14
ASSEM_SRC += ldso-stubs.S
14
ASSEM_SRC += ldso-stubs.S
15
15
16
# Until sbcl-0.6.7.3, we used "LINKFLAGS+=-static" here, which
16
# Until sbcl-0.6.7.3, we used "LDFLAGS+=-static" here, which
17
# worked fine for most things, but LOAD-FOREIGN & friends require
17
# worked fine for most things, but LOAD-FOREIGN & friends require
18
# dlopen() etc., which in turn depend on dynamic linking of the
18
# dlopen() etc., which in turn depend on dynamic linking of the
19
# runtime.
19
# runtime.
20
LINKFLAGS += -dynamic -export-dynamic
20
LDFLAGS += -dynamic -export-dynamic
21
21
22
# use libthr (1:1 threading).  libpthread (m:n threading) does not work.
22
# use libthr (1:1 threading).  libpthread (m:n threading) does not work.
23
ifdef LISP_FEATURE_SB_THREAD
23
ifdef LISP_FEATURE_SB_THREAD
(-)a/src/runtime/Config.x86-linux (-2 / +2 lines)
Lines 27-37 OS_SRC = linux-os.c x86-linux-os.c Link Here
27
# (You *are* encouraged to design and implement a coherent stable
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
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.)
29
# working on one and it would be a nice thing to have.)
30
LINKFLAGS += -Wl,--export-dynamic
30
SBCL_LDFLAGS += -Wl,--export-dynamic
31
OS_LIBS = -ldl
31
OS_LIBS = -ldl
32
32
33
ifdef LISP_FEATURE_LARGEFILE
33
ifdef LISP_FEATURE_LARGEFILE
34
  CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
34
  SBCL_CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
35
endif
35
endif
36
36
37
ifdef LISP_FEATURE_SB_THREAD
37
ifdef LISP_FEATURE_SB_THREAD
(-)a/src/runtime/Config.x86-netbsd (-2 / +2 lines)
Lines 13-18 include Config.x86-bsd Link Here
13
13
14
ASSEM_SRC += ldso-stubs.S
14
ASSEM_SRC += ldso-stubs.S
15
OS_SRC += undefineds.c
15
OS_SRC += undefineds.c
16
LINKFLAGS += -dynamic -export-dynamic
16
LDFLAGS += -dynamic -export-dynamic
17
17
18
CFLAGS =  -g -Wall -O2
18
CFLAGS += -O2
(-)a/src/runtime/Config.x86-openbsd (-6 / +1 lines)
Lines 18-28 OS_LIBS += -lutil Link Here
18
# locations used. If you wish to link the runtime using -Z option then
18
# locations used. If you wish to link the runtime using -Z option then
19
# please see the comments in src/compiler/x86/parms.lisp
19
# please see the comments in src/compiler/x86/parms.lisp
20
20
21
# XXX why do all the other Configs set LINKFLAGS instead of LDFLAGS?
22
# LINKFLAGS is only used in src/runtime/GNUmakefile, this causes the
23
# dladdr test in tools-for-build/ to fail.
24
25
LINKFLAGS += -export-dynamic
26
LDFLAGS += -export-dynamic
21
LDFLAGS += -export-dynamic
27
22
28
CFLAGS =  -g -Wall -O2
23
CFLAGS += -O2
(-)a/src/runtime/Config.x86-sunos (-2 / +1 lines)
Lines 1-6 Link Here
1
CC=gcc
1
CC=gcc
2
CFLAGS = -g -O2 -Wall -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT
2
CFLAGS += -O2 -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT
3
ASFLAGS = -Wall
4
LD = ld
3
LD = ld
5
NM = nm -xgp
4
NM = nm -xgp
6
GREP = ggrep
5
GREP = ggrep
(-)a/src/runtime/Config.x86-win32 (-3 / +3 lines)
Lines 25-37 OS_SRC = win32-os.c x86-win32-os.c os-common.c Link Here
25
# (You *are* encouraged to design and implement a coherent stable
25
# (You *are* encouraged to design and implement a coherent stable
26
# interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
26
# interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
27
# working on one and it would be a nice thing to have.)
27
# working on one and it would be a nice thing to have.)
28
OS_LINK_FLAGS = -Wl,--export-dynamic,-mno-cygwin
28
OS_LINK_FLAGS += -Wl,--export-dynamic,-mno-cygwin
29
OS_LIBS = -mno-cygwin
29
OS_LIBS = -mno-cygwin
30
30
31
GC_SRC = gencgc.c
31
GC_SRC = gencgc.c
32
32
33
CFLAGS =  -g -Wall -O3 -mno-cygwin
33
CFLAGS += -O3 -mno-cygwin
34
ASFLAGS = $(CFLAGS)
34
ASFLAGS += $(CFLAGS)
35
35
36
CPP = cpp
36
CPP = cpp
37
CC = gcc
37
CC = gcc
(-)a/src/runtime/Config.x86_64-linux (-1 / +1 lines)
Lines 27-33 OS_SRC = linux-os.c x86-64-linux-os.c Link Here
27
# (You *are* encouraged to design and implement a coherent stable
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
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.)
29
# working on one and it would be a nice thing to have.)
30
LINKFLAGS += -Wl,--export-dynamic
30
LDFLAGS += -Wl,--export-dynamic
31
OS_LIBS = -ldl
31
OS_LIBS = -ldl
32
32
33
ifdef LISP_FEATURE_LARGEFILE
33
ifdef LISP_FEATURE_LARGEFILE
(-)a/src/runtime/GNUmakefile (-15 / +7 lines)
Lines 18-44 TARGET=sbcl Link Here
18
# Config file. Most of them are same on most systems right now.
18
# Config file. Most of them are same on most systems right now.
19
# If you need to override one of these, do it in Config.
19
# If you need to override one of these, do it in Config.
20
LD = ld
20
LD = ld
21
LINKFLAGS = -g
21
SBCL_LDFLAGS = -g
22
NM = nm -gp
22
NM = nm -gp
23
DEPEND_FLAGS = -MM
23
DEPEND_FLAGS = -MM
24
GREP = grep
24
GREP = grep
25
25
26
include ../../output/prefix.def
26
include ../../output/prefix.def
27
27
28
CFLAGS = -g -Wall -Wsign-compare -O3
28
SBCL_CFLAGS = -g -Wall -Wsign-compare -O3
29
ASFLAGS = $(CFLAGS)
29
SBCL_ASFLAGS = $(SBCL_CFLAGS)
30
CPPFLAGS = -I. -DSBCL_PREFIX=\"$(SBCL_PREFIX)\"
30
SBCL_CPPFLAGS = -I. -DSBCL_PREFIX=\"$(SBCL_PREFIX)\"
31
31
32
# Give make access to the target Lisp features.
32
# Also included by tools-for-build/Makefile
33
include genesis/Makefile.features
33
-include platform.mk
34
35
# The Config file is the preferred place for tweaking options which
36
# are appropriate for particular setups (OS, ARCH, whatever). Make a
37
# Config-foo file for setup foo, then arrange for Config to be a
38
# symlink to Config-foo.
39
# Commonly used variables in Config are: ARCH_SRC, ASSEM_SRC, GC_SRC,
40
# OS_SRC, OS_LIBS, OS_OBJS, OS_CLEAN_FILES
41
include Config
42
34
43
COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c \
35
COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c \
44
	dynbind.c funcall.c gc-common.c globals.c interr.c interrupt.c \
36
	dynbind.c funcall.c gc-common.c globals.c interr.c interrupt.c \
Lines 58-64 LIBS = ${OS_LIBS} -lm Link Here
58
targets: $(TARGET) sbcl.nm
50
targets: $(TARGET) sbcl.nm
59
51
60
$(TARGET): $(OBJS)
52
$(TARGET): $(OBJS)
61
	$(CC) ${LINKFLAGS} -o $@ $^ $(LIBS)
53
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
62
54
63
sbcl.nm: $(TARGET)
55
sbcl.nm: $(TARGET)
64
	$(NM) $(TARGET) | $(GREP) -v " [FUw] " > ,$@
56
	$(NM) $(TARGET) | $(GREP) -v " [FUw] " > ,$@
(-)a/src/runtime/platform.mk (+17 lines)
Line 0 Link Here
1
# -*- makefile -*- for the C-level run-time support for SBCL
2
3
# Give make access to the target Lisp features.
4
-include genesis/Makefile.features
5
6
# The Config file is the preferred place for tweaking options which
7
# are appropriate for particular setups (OS, ARCH, whatever). Make a
8
# Config-foo file for setup foo, then arrange for Config to be a
9
# symlink to Config-foo.
10
# Commonly used variables in Config are: ARCH_SRC, ASSEM_SRC, GC_SRC,
11
# OS_SRC, OS_LIBS, OS_OBJS, OS_CLEAN_FILES
12
-include Config
13
14
CPPFLAGS := $(SBCL_CPPFLAGS) $(CPPFLAGS)
15
CFLAGS   := $(SBCL_CFLAGS)   $(CFLAGS)
16
ASFLAGS  := $(SBCL_ASFLAGS)  $(ASFLAGS)
17
LDFLAGS  := $(SBCL_LDFLAGS)  $(LDFLAGS)
(-)a/tools-for-build/ldso-stubs.lisp (-5 / +4 lines)
Lines 7-18 Link Here
7
# provided with absolutely no warranty. See the COPYING and CREDITS
7
# provided with absolutely no warranty. See the COPYING and CREDITS
8
# files for more information.
8
# files for more information.
9
9
10
-include genesis/Makefile.features
10
SBCL_CPPFLAGS = -I../src/runtime
11
-include Config
11
SBCL_LDFLAGS = $(OS_LIBS)
12
12
13
CPPFLAGS:=-I../src/runtime
13
# from src/runtime/
14
LDFLAGS:=$(LDFLAGS)
14
-include platform.mk
15
LDLIBS:=$(OS_LIBS)
16
15
17
all: grovel-headers determine-endianness where-is-mcontext \
16
all: grovel-headers determine-endianness where-is-mcontext \
18
        modify-ldt-struct-name sigaction-sa-nodefer-works-test
17
        modify-ldt-struct-name sigaction-sa-nodefer-works-test

Return to bug 357615