-Os instead of -O2

This commit is contained in:
ehouse 2006-01-16 06:08:16 +00:00
parent 834a5e0411
commit 146a4f1d4d

View file

@ -15,6 +15,9 @@ CC_ARM = arm-$(WHICH)-gcc
OC_ARM= arm-$(WHICH)-objcopy
OD_ARM = arm-$(WHICH)-objdump
OPT = -Os
MINUS_G = -g
INCLUDE += \
-I$(PALMDIR) \
-I$(PALMDIR)/Libraries \
@ -30,7 +33,7 @@ INCLUDE += \
# NOTE!!!! Added the -w flag to supress all warnings since arm-elf-gcc
# does so much bitching about the Palm headers. Need to fix that, or
# use the arm-palmos-gcc, or something. But for now, -w....
CCFLAGS = -O2 -g -Wall -D__PALMOS__
CCFLAGS = $(OPT) $(MINUS_G) -Wall -D__PALMOS__ -D__palmos__ -Asystem=palmos
ARMCCFS = $(CCFLAGS) -DNATIVE \
-nostartfiles -mshort-load-bytes -nodefaultlibs -ffixed-r9 \
-mpic-register=r10 -msingle-pic-base -fpic \