forked from dmitryvk/sbcl-win32-threads
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged Brian Mastenbrook's "SBCL-on-Darwin state" patch (sbcl-devel 2004-02-18)
- Loading branch information
William Harold Newman
committed
Feb 20, 2004
1 parent
1f7f3d7
commit ded744f
Showing
23 changed files
with
145 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
# -*- makefile -*- | ||
CFLAGS = -DDARWIN -Dppc -g -Wall -O3 -no-cpp-precomp | ||
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 | ||
|
||
# Avoid the dreaded gcc 3.3 prerelease tarpit of death! | ||
# Avoid the gcc 3.3 prerelease tarpit of death! | ||
CC = gcc3 | ||
|
||
ASSEM_SRC = ppc-assem.S ldso-stubs.S | ||
ARCH_SRC = ppc-arch.c | ||
|
||
CPP = cpp -no-cpp-precomp | ||
|
||
OS_LINK_FLAGS = -dynamic -L$(HOME)/local/lib -L/sw/lib -L/opt/local/lib -L/usr/local/lib | ||
# 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) | ||
|
||
GC_SRC= cheneygc.c | ||
|
||
CLEAN_FILES += ppc-darwin-mkrospace | ||
|
||
ppc-darwin-mkrospace: ppc-darwin-mkrospace.c | ||
$(CC) -o $@ $< | ||
|
||
ppc-darwin-rospace.o: ppc-darwin-mkrospace | ||
./ppc-darwin-mkrospace | ||
|
||
.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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
#include <errno.h> | ||
#include <strings.h> | ||
|
||
#include "sbcl.h" | ||
#include "os.h" | ||
#include "interr.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.