X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FConfig.ppc-darwin;h=8b08336f4d393a3edb6fb170e7e0c890a1b9900c;hb=5f0bd05a15aaf93f46baf9b8aa3e9b0bfbca26ab;hp=5c8d34c126183cba43eab8d2390bd56706e009e9;hpb=28ed41eb0eed3f0c1baeebf10793a3d21cb0eb9d;p=sbcl.git diff --git a/src/runtime/Config.ppc-darwin b/src/runtime/Config.ppc-darwin index 5c8d34c..8b08336 100644 --- a/src/runtime/Config.ppc-darwin +++ b/src/runtime/Config.ppc-darwin @@ -9,10 +9,15 @@ # 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 darwin-os.c ppc-darwin-os.c darwin-dlshim.c darwin-langinfo.c +CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4 +LINKFLAGS += -mmacosx-version-min=10.4 + +OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c + OS_LIBS = -lSystem -lc -OS_OBJS = ppc-darwin-rospace.o +ifdef LISP_FEATURE_SB_CORE_COMPRESSION + OS_LIBS += -lz +endif CC = gcc @@ -21,38 +26,13 @@ ARCH_SRC = ppc-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 ppc-darwin-link-flags` -twolevel_namespace -bind_at_load - -GC_SRC = $(shell if grep LISP_FEATURE_GENCGC genesis/config.h \ - > /dev/null 2>&1; \ - then echo "gencgc.c"; \ - else echo "cheneygc.c" ; fi) - -OS_CLEAN_FILES += ppc-darwin-mkrospace ppc-darwin-fix-rospace ppc-darwin-link-flags - -ppc-darwin-mkrospace: ppc-darwin-mkrospace.c - $(CC) -g -Wall -pedantic -o $@ $< - -ppc-darwin-fix-rospace: ppc-darwin-fix-rospace.c - $(CC) -g -Wall -pedantic -o $@ $< - -ppc-darwin-rospace.o ppc-darwin-link-flags: ppc-darwin-mkrospace - ./ppc-darwin-mkrospace > ppc-darwin-link-flags +ifdef LISP_FEATURE_GENCGC + GC_SRC = gencgc.c +else + GC_SRC = cheneygc.c +endif .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: ppc-darwin-fix-rospace - ./ppc-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: