diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-20 14:00:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-20 14:00:42 +0000 |
commit | ef3a3e70930658d499cf200d198e6a86fd183bc0 (patch) | |
tree | 8ebeb30712d756445c80f8141426dc04b6ef7cb3 | |
parent | 3c10db57c6963f49a9238b0e7e9db259e72cd684 (diff) | |
download | rockbox-ef3a3e70930658d499cf200d198e6a86fd183bc0.tar.gz rockbox-ef3a3e70930658d499cf200d198e6a86fd183bc0.zip |
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
-rw-r--r-- | apps/Makefile | 2 | ||||
-rw-r--r-- | firmware/Makefile | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/Makefile b/apps/Makefile index bd76209fad..e375cb9b1d 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -25,7 +25,7 @@ TARGET = -DARCHOS_PLAYER_OLD=1 | |||
25 | # store output files in this directory: | 25 | # store output files in this directory: |
26 | OBJDIR = . | 26 | OBJDIR = . |
27 | 27 | ||
28 | CFLAGS = -O -W -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) | 28 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) |
29 | AFLAGS += -small -relax | 29 | AFLAGS += -small -relax |
30 | 30 | ||
31 | ifdef DEBUG | 31 | ifdef DEBUG |
diff --git a/firmware/Makefile b/firmware/Makefile index 03576d19fd..7d09809713 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -25,12 +25,12 @@ TARGET = -DARCHOS_PLAYER=1 | |||
25 | # store output files in this directory: | 25 | # store output files in this directory: |
26 | OBJDIR = . | 26 | OBJDIR = . |
27 | 27 | ||
28 | CFLAGS = -W -Wall -O -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) | 28 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) |
29 | 29 | ||
30 | ifdef DEBUG | 30 | ifdef DEBUG |
31 | CFLAGS += -g -DDEBUG | 31 | CFLAGS += -g -DDEBUG |
32 | else | 32 | else |
33 | CFLAGS += -fomit-frame-pointer -fschedule-insns | 33 | CFLAGS += -fomit-frame-pointer -fschedule-insns |
34 | endif | 34 | endif |
35 | 35 | ||
36 | SRC := $(wildcard drivers/*.c common/*.c *.c) | 36 | SRC := $(wildcard drivers/*.c common/*.c *.c) |