Skip to content
Snippets Groups Projects
Commit dd7bc629 authored by rtoy's avatar rtoy
Browse files

Change CC to gcc so we can use the default version on both Mac OS X

10.2 and 10.4.  However, we need to compile all assembly files with
-traditional to concatenate tokens the way we want.  (Appears to be an
issue with gcc 4.0 included with Tiger.)
parent b085f496
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,12 @@ vpath %.h $(PATH1)
vpath %.c $(PATH1)
vpath %.S $(PATH1)
CPPFLAGS = -I. -I$(PATH1) -I/usr/X11R6/include
CC = gcc3
# For Mac OS X 10.2, gcc3 is appropriate. For 10.4, gcc (gcc 4.0) is ok. But
# this means -traditional is needed because gcc 4 seems to handle '##'
# differently from gcc-3.3. I (rtoy) don't know which is right, but I
# think gcc 4 is wrong. However, to work around this, we use /**/ to
# concatenate tokens which reguires the -traditional flag.
CC = gcc
LD = ld
NM = $(PATH1)/darwin-nm
CPP = cpp -no-cpp-precomp
......@@ -13,7 +18,7 @@ LINKAGE = -DLINKAGE_TABLE
endif
CFLAGS = -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE)
ASFLAGS = -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE)
ASFLAGS = -traditional -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE)
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC = ppc-assem.S linux-stubs.S
......
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