X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=9acf2de7e3d5a53a4a0d37ab6db3ede9e9b11b43;hb=c44555f7fa9a90c1934f5b74c8fe1dee1c09d325;hp=f0df92c409bf1ee0a76b50736ad9700257a451ca;hpb=3cb93a5034835ac4b3eb7831e743463b6c831e51;p=palacios.git diff --git a/Makefile b/Makefile index f0df92c..9acf2de 100644 --- a/Makefile +++ b/Makefile @@ -181,9 +181,9 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ HOSTCC = gcc HOSTCXX = g++ -HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ +HOSTCFLAGS = -Wall -Wstrict-prototypes -fomit-frame-pointer \ -Wno-unused -Wno-format-security -U_FORTIFY_SOURCE -HOSTCXXFLAGS = -O2 +HOSTCXXFLAGS = -O # Decide whether to build built-in, modular, or both. # Normally, just do built-in. @@ -298,7 +298,10 @@ V3_INCLUDE := -Ipalacios/include \ CPPFLAGS := $(V3_INCLUDE) -D__V3VEE__ -CFLAGS := -fno-stack-protector -Wall -O -Werror -fPIC -mno-red-zone -fno-common +CFLAGS := -fno-stack-protector -Wall -Werror -fPIC -mno-red-zone -fno-common +#-fPIC +#-ffreestanding + LDFLAGS := --whole-archive @@ -479,6 +482,8 @@ endif ifdef CONFIG_DEBUG_INFO CFLAGS += -g +else +CFLAGS += -O endif