X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FConfig.x86-darwin;h=6c8780a80901443aa8347f2b85b8d1832878d9f4;hb=dd54f9e004a0a83d1328e94648f48dcc27e0be5b;hp=e6e92b6699443695944bc554d3854216d44e055c;hpb=28ed41eb0eed3f0c1baeebf10793a3d21cb0eb9d;p=sbcl.git diff --git a/src/runtime/Config.x86-darwin b/src/runtime/Config.x86-darwin index e6e92b6..6c8780a 100644 --- a/src/runtime/Config.x86-darwin +++ b/src/runtime/Config.x86-darwin @@ -9,10 +9,25 @@ # provided with absolutely no warranty. See the COPYING and CREDITS # files for more information. -CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c darwin-dlshim.c darwin-langinfo.c +CFLAGS = -arch i386 -g -Wall -O2 -fdollars-in-identifiers -fno-omit-frame-pointer +LINKFLAGS += -arch i386 +ifdef LISP_FEATURE_DARWIN9_OR_BETTER +CFLAGS += -mmacosx-version-min=10.5 +LINKFLAGS += -mmacosx-version-min=10.5 +else +CFLAGS += -mmacosx-version-min=10.4 +LINKFLAGS += -mmacosx-version-min=10.4 +endif + +OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c + OS_LIBS = -lSystem -lc -ldl -OS_OBJS = x86-darwin-rospace.o +ifdef LISP_FEATURE_SB_THREAD + OS_LIBS += -lpthread +endif +ifdef LISP_FEATURE_SB_CORE_COMPRESSION + OS_LIBS += -lz +endif CC = gcc @@ -21,35 +36,9 @@ ARCH_SRC = x86-arch.c CPPFLAGS += -no-cpp-precomp -# KLUDGE: in OS X 10.3, Apple started putting the heap right where we -# expect our read-only space mapped. This hack causes the linker to -# place a zero-fill-on-demand segment in the same place and size as -# read-only-space, which is the only thing capable of keeping malloc -# out of this range. -LINKFLAGS += -dynamic `cat x86-darwin-link-flags` -twolevel_namespace -bind_at_load - GC_SRC = gencgc.c -OS_CLEAN_FILES += x86-darwin-mkrospace x86-darwin-fix-rospace x86-darwin-link-flags - -x86-darwin-mkrospace: x86-darwin-mkrospace.c - $(CC) -g -Wall -pedantic -o $@ $< - -x86-darwin-fix-rospace: x86-darwin-fix-rospace.c - $(CC) -g -Wall -pedantic -o $@ $< - -x86-darwin-rospace.o x86-darwin-link-flags: x86-darwin-mkrospace - ./x86-darwin-mkrospace > x86-darwin-link-flags - .PHONY: after-grovel-headers -# Fix the sbcl runtime to avoid Panther placing the heap where -# it wants read only space (in the first 32 megabytes, where it -# can be absolute-branched to with BA.) Must be done after -# grovel-headers, because Apple's nm is broken. -after-grovel-headers: x86-darwin-fix-rospace - ./x86-darwin-fix-rospace - -# Fortunatly make-target-1.sh does a make clean all the time. -# Otherwise we would have to make sure that sbcl gets rebuilt without -# the readonlyspace hack before groveling headers again. +# Nothing to do. +after-grovel-headers: