Skip to content
Snippets Groups Projects
Commit d669c129 authored by Raymond Toy's avatar Raymond Toy
Browse files

Update for ppc/darwin 10.5 and gcc 4.8.

o Remove -no-cpp-precomp, which isn't recognized by gcc 4.8.
o Add -static-libgcc so lisp doesn't need to have a compatible version
  of libgcc on the target system.
o e_rem_pio2.c doesn't have aliasing issues, so remove the compiler
  flags.
parent 06300c81
Branches rtoy-unicode-6.2
Tags snapshot-2013-03-a
No related merge requests found
......@@ -11,12 +11,12 @@ CPPFLAGS = -I. -I$(PATH1)
# think gcc 4 is wrong. However, to work around this, we use /**/ to
# concatenate tokens which reguires the -traditional flag.
# Build for OSX 10.2.8 or later. (Is this what we want?)
# Build for OSX 10.4 or later. (Is this what we want?)
OSX_VERSION=-mmacosx-version-min=10.4
CC = gcc
LD = ld
NM = $(PATH1)/darwin-nm
CPP = cpp -no-cpp-precomp
CPP = cpp
DEPEND_FLAGS = -MM
ifdef FEATURE_LINKAGE_TABLE
......@@ -34,8 +34,8 @@ ifdef FEATURE_UNICODE
UNICODE = -DUNICODE
endif
CFLAGS = $(OSX_VERSION) -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC) $(UNICODE)
ASFLAGS = $(OSX_VERSION) -traditional -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC)
CFLAGS = $(OSX_VERSION) -g -O3 -DDARWIN -Dppc $(LINKAGE) $(GENCGC) $(UNICODE)
ASFLAGS = $(OSX_VERSION) -traditional -g -O3 -DDARWIN -Dppc $(LINKAGE) $(GENCGC)
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC = ppc-assem.S linux-stubs.S
......@@ -52,10 +52,15 @@ endif
# that the segaddr for CMUCLRO should be the READ_ONLY_SPACE_START.
# The seg1addr should be somewhere above our spaces. This is where
# the C runtime code goes, I think.
#
# OS_LINK_FLAGS = -g -dynamic -Wl,-sectcreate,CMUCLRO,core,/dev/null -Wl,-segaddr,CMUCLRO,0x01000000 -Wl,-seg1addr,0x1a000000
OS_LINK_FLAGS = $(OSX_VERSION)
# gcc 4.8, (used on zombie) needs -static-libgcc so that the gcc
# library is staticly linked into lisp so that the user doesn't need a
# matching version of libgcc.
OS_LINK_FLAGS = $(OSX_VERSION) -static-libgcc
OS_LIBS = -lSystem -lc -lm
#all: adjustlisp
#adjustlisp: lisp darwin-lispadjuster
# ./darwin-lispadjuster lisp
......@@ -64,6 +69,7 @@ OS_LIBS = -lSystem -lc -lm
#darwin-lispadjuster: darwin-lispadjuster.c
# This has aliasing problems, so turn off aliasing.
# According to Config.x86_common, this no longer has aliasing
# problems, so we don't need any additional compilation options.
e_rem_pio2.o : e_rem_pio2.c
$(CC) -c -fno-strict-aliasing -ffloat-store $(CFLAGS) $<
$(CC) -c $(CFLAGS) $<
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment