git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git]
/
lunaix-os
/
makeinc
/
toolchain.mkinc
diff --git
a/lunaix-os/makeinc/toolchain.mkinc
b/lunaix-os/makeinc/toolchain.mkinc
index 486e9ce74ccf5c178a800dcd587f6a82c58e539b..96dd3c4e1fcd308411a7437bdd5d911b8a320fb9 100644
(file)
--- a/
lunaix-os/makeinc/toolchain.mkinc
+++ b/
lunaix-os/makeinc/toolchain.mkinc
@@
-4,7
+4,7
@@
AS := $(CX_PREFIX)as
AR := $(CX_PREFIX)ar
LBUILD ?= $(shell realpath ./scripts/build-tools/luna_build.py)
AR := $(CX_PREFIX)ar
LBUILD ?= $(shell realpath ./scripts/build-tools/luna_build.py)
-O := -O2
+
W := -Wall -Wextra -Werror \
-Wno-unknown-pragmas \
-Wno-unused-function \
W := -Wall -Wextra -Werror \
-Wno-unknown-pragmas \
-Wno-unused-function \
@@
-19,7
+19,9
@@
OFLAGS := -fno-omit-frame-pointer
CFLAGS := -std=gnu99 $(OFLAGS) $(W) -g
ifeq ($(MODE),debug)
CFLAGS := -std=gnu99 $(OFLAGS) $(W) -g
ifeq ($(MODE),debug)
- O = -Og
+ O := -Og
+else
+ O := -O2
endif
CFLAGS += $(O)
endif
CFLAGS += $(O)