X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=9acf2de7e3d5a53a4a0d37ab6db3ede9e9b11b43;hb=a71f35bcb2dc587326be18345adb1ad1d81b9435;hp=9d77f826e8f1ed77a2ff519ead93cee57d20a82f;hpb=208c31198a01d66589ff6e50d77da14c8dd91d71;p=palacios.git diff --git a/Makefile b/Makefile index 9d77f82..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,9 +298,12 @@ V3_INCLUDE := -Ipalacios/include \ CPPFLAGS := $(V3_INCLUDE) -D__V3VEE__ -CFLAGS := -fno-stack-protector -Wall -O -Werror -fPIC -mno-red-zone +CFLAGS := -fno-stack-protector -Wall -Werror -fPIC -mno-red-zone -fno-common +#-fPIC +#-ffreestanding -LDFLAGS := --whole-archive + +LDFLAGS := --whole-archive ifeq ($(call cc-option-yn, -fgnu89-inline),y) CFLAGS += -fgnu89-inline @@ -479,6 +482,8 @@ endif ifdef CONFIG_DEBUG_INFO CFLAGS += -g +else +CFLAGS += -O endif