mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
don't use arm-palmos* tools if arm-elf* tools available. Current
version on debian testing builds bad code.
This commit is contained in:
parent
2093c3d0ac
commit
c7d851ca18
1 changed files with 8 additions and 2 deletions
|
@ -3,8 +3,13 @@
|
|||
PLATFORM = PALM_PNO
|
||||
PALMDIR = /usr/local/share/palmdev/sdk-5r3/include
|
||||
|
||||
#WHICH = elf
|
||||
WHICH = palmos
|
||||
# Which arm suite to use? Well, the suite in prc-tools-arm is broken
|
||||
# on debian at the moment: builds code that doesn't work. But older
|
||||
# versions, e.g. on current debian stable, are ok. For current debian
|
||||
# the workaround is to build your own crosscompilation toolchain,
|
||||
# which should put arm-elf-gcc in your path. We'll use that if we
|
||||
# find it. Otherwise we fall back to the prc-tools-arm chain.
|
||||
WHICH = $(shell if which arm-elf-gcc > /dev/null ; then echo elf; else echo palmos; fi)
|
||||
|
||||
CC_ARM = arm-$(WHICH)-gcc
|
||||
OC_ARM= arm-$(WHICH)-objcopy
|
||||
|
@ -29,6 +34,7 @@ CCFLAGS = -O2 -g -Wall -D__PALMOS__
|
|||
ARMCCFS = $(CCFLAGS) -DNATIVE \
|
||||
-nostartfiles -mshort-load-bytes -nodefaultlibs -ffixed-r9 \
|
||||
-mpic-register=r10 -msingle-pic-base -fpic \
|
||||
-Wno-multichar \
|
||||
$(INCLUDE)
|
||||
|
||||
ARMLDFS = -Xlinker --script=./ldscript.arm -lgcc
|
||||
|
|
Loading…
Add table
Reference in a new issue