X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FConfig.ppc-darwin;h=8b08336f4d393a3edb6fb170e7e0c890a1b9900c;hb=0285aa5ff8416027932daa001b84429be2ca559b;hp=a38d747e59946afe7770140e9378989d9b03666f;hpb=20e05e5ed4cc31a9a97fd07d6fe626c9f3e3f43b;p=sbcl.git diff --git a/src/runtime/Config.ppc-darwin b/src/runtime/Config.ppc-darwin index a38d747..8b08336 100644 --- a/src/runtime/Config.ppc-darwin +++ b/src/runtime/Config.ppc-darwin @@ -1,47 +1,38 @@ -# -*- makefile -*- -CFLAGS = -Dppc -g -Wall -O3 -no-cpp-precomp -OS_SRC = bsd-os.c os-common.c ppc-darwin-os.c ppc-darwin-dlshim.c -OS_LIBS = -lSystem -lc -lm +# -*- makefile -*- for the C-level run-time support for SBCL -# Avoid the gcc 3.3 prerelease tarpit of death! -CC = gcc3 +# This software is part of the SBCL system. See the README file for +# more information. +# +# This software is derived from the CMU CL system, which was +# written at Carnegie Mellon University and released into the +# public domain. The software is in the public domain and is +# provided with absolutely no warranty. See the COPYING and CREDITS +# files for more information. -ASSEM_SRC = ppc-assem.S ldso-stubs.S -ARCH_SRC = ppc-arch.c +CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4 +LINKFLAGS += -mmacosx-version-min=10.4 -CPP = cpp -no-cpp-precomp +OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c -# 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." -# -# FIXME: "-Wl,-segaddr,SBCLRO,0x1000000" is output from -# ppc-darwin-mkrospace (it depends on READ_ONLY_SPACE I believe) but it -# is hard-coded here! -OS_LINK_FLAGS = -dynamic -L$(HOME)/local/lib -L/sw/lib -L/opt/local/lib -L/usr/local/lib -Wl,-segaddr,SBCLRO,0x1000000 -Wl,-seg1addr,0x5000000 $(if $(AFTER_GROVEL_HEADERS),ppc-darwin-rospace.o) +OS_LIBS = -lSystem -lc +ifdef LISP_FEATURE_SB_CORE_COMPRESSION + OS_LIBS += -lz +endif -GC_SRC= cheneygc.c +CC = gcc -CLEAN_FILES += ppc-darwin-mkrospace +ASSEM_SRC = ppc-assem.S ldso-stubs.S +ARCH_SRC = ppc-arch.c -ppc-darwin-mkrospace: ppc-darwin-mkrospace.c - $(CC) -o $@ $< +CPPFLAGS += -no-cpp-precomp -ppc-darwin-rospace.o: ppc-darwin-mkrospace - ./ppc-darwin-mkrospace +ifdef LISP_FEATURE_GENCGC + GC_SRC = gencgc.c +else + GC_SRC = cheneygc.c +endif .PHONY: after-grovel-headers -# Rebuild 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-rospace.o - rm -f sbcl - $(GNUMAKE) sbcl AFTER_GROVEL_HEADERS=1 - -# 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: