1
0
Fork 0
forked from len0rd/rockbox

use the gcc option -ffreestanding: (quote from the gcc man page)

"A freestanding environment is one in which the standard library may not
exist, and program startup may not necessarily be at "main".  The most obvious
example is an OS kernel."


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1818 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-08-20 14:00:42 +00:00
parent 3c10db57c6
commit ef3a3e7093
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ TARGET = -DARCHOS_PLAYER_OLD=1
# store output files in this directory:
OBJDIR = .
CFLAGS = -O -W -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES)
CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES)
AFLAGS += -small -relax
ifdef DEBUG

View file

@ -25,7 +25,7 @@ TARGET = -DARCHOS_PLAYER=1
# store output files in this directory:
OBJDIR = .
CFLAGS = -W -Wall -O -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
ifdef DEBUG
CFLAGS += -g -DDEBUG