mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add warnings to userspace compile flags.
This commit is contained in:
parent
b0807e8c7a
commit
d855c6cec7
4 changed files with 19 additions and 13 deletions
|
@ -2,6 +2,8 @@
|
|||
OSROOT=..
|
||||
include ../crosscompilemakefile.mak
|
||||
|
||||
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
|
||||
|
||||
INITRDDIR:=../initrd
|
||||
LOCALBINARIES:=\
|
||||
benchsyscall \
|
||||
|
|
|
@ -16,21 +16,21 @@ ifeq ($(CPU),x64)
|
|||
CPULDFLAGS=-melf_x86_64
|
||||
endif
|
||||
|
||||
LIBMAXSIROOT=$(OSROOT)/libmaxsi
|
||||
SORTIXROOT=$(OSROOT)/sortix
|
||||
LIBMAXSIROOT:=$(OSROOT)/libmaxsi
|
||||
SORTIXROOT:=$(OSROOT)/sortix
|
||||
|
||||
LIBC=$(LIBMAXSIROOT)/start.o $(LIBMAXSIROOT)/libc.a
|
||||
LIBS=$(LIBC)
|
||||
LIBC:=$(LIBMAXSIROOT)/start.o $(LIBMAXSIROOT)/libc.a
|
||||
LIBS:=$(LIBC)
|
||||
|
||||
CPPFLAGS=$(CPUDEFINES) -U_GNU_SOURCE -Ulinux -Dsortix
|
||||
FLAGS=-nostdinc -nostdlib -fno-builtin -nostartfiles -nodefaultlibs
|
||||
INCLUDES=-I $(LIBMAXSIROOT)/preproc -I $(SORTIXROOT)/include
|
||||
CPPFLAGS:=$(CPUDEFINES) -U_GNU_SOURCE -Ulinux -Dsortix
|
||||
FLAGS:=-nostdinc -nostdlib -nostartfiles -nodefaultlibs
|
||||
INCLUDES:=-I $(LIBMAXSIROOT)/preproc -I $(SORTIXROOT)/include
|
||||
|
||||
LD=ld
|
||||
LDFLAGS=$(CPULDFLAGS)
|
||||
CC=gcc
|
||||
CFLAGS=$(CPUFLAGS) $(FLAGS) $(INCLUDES)
|
||||
CXX=g++
|
||||
CXXFLAGS=$(CPUFLAGS) $(FLAGS) $(INCLUDES) -fno-exceptions -fno-rtti
|
||||
LD:=ld
|
||||
LDFLAGS:=$(CPULDFLAGS)
|
||||
CC:=gcc
|
||||
CFLAGS:=$(CPUFLAGS) $(FLAGS) $(INCLUDES)
|
||||
CXX:=g++
|
||||
CXXFLAGS:=$(CPUFLAGS) $(FLAGS) $(INCLUDES) -fno-exceptions -fno-rtti
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
OSROOT=..
|
||||
include ../crosscompilemakefile.mak
|
||||
|
||||
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
|
||||
|
||||
INITRDDIR:=../initrd
|
||||
LOCALBINARIES:=\
|
||||
pong \
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
OSROOT=..
|
||||
include ../crosscompilemakefile.mak
|
||||
|
||||
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
|
||||
|
||||
INITRDDIR:=../initrd
|
||||
LOCALBINARIES:=\
|
||||
init \
|
||||
|
|
Loading…
Reference in a new issue