X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=9acf2de7e3d5a53a4a0d37ab6db3ede9e9b11b43;hb=d3a58bbcc5cc9105e894771b1b2c39f76c86a70e;hp=bb5c1553c3682296eb19a4d133854566553fa65b;hpb=2fa62a8319b951b761c235bde156e1eeacce996a;p=palacios.git diff --git a/Makefile b/Makefile index bb5c155..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 @@ -818,7 +823,7 @@ endif ALLSOURCE_ARCHS := $(ARCH) define all-sources - ( find $(__srctree)/palacios $(RCS_FIND_IGNORE) \ + ( find $(__srctree)palacios $(RCS_FIND_IGNORE) \ \( -name lib \) -prune -o \ -name '*.[chS]' -print; ) endef