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
integrate C/LDFLAGS into LunaBuild flow
[lunaix-os.git]
/
lunaix-os
/
usr
/
makefile
diff --git
a/lunaix-os/usr/makefile
b/lunaix-os/usr/makefile
index e49d7d05ee68ffb5ef40046a86fa8a35c7112511..4dc8d0d67f4ac970673a48a1238bef86df7306c6 100644
(file)
--- a/
lunaix-os/usr/makefile
+++ b/
lunaix-os/usr/makefile
@@
-3,6
+3,10
@@
include toolchain.mkinc
task := all
+# TODO make this use LBuild
+CFLAGS += -m32 -ffreestanding -fno-pie
+LDFLAGS += -m32 -nostdlib -nolibc -z noexecstack -no-pie -Wl,--build-id=none
+
sys_include := $(CURDIR)/includes
build_dir := $(CURDIR)/build
libc_name := liblunac