From: Peter Dinda Date: Mon, 24 Jan 2011 18:46:28 +0000 (-0600) Subject: Revert to use of -O instead of -O2 to be more compatible X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=6955900236db1de92ce4e62aea31b5167e380982 Revert to use of -O instead of -O2 to be more compatible with older gccs. -O2 breaks on 4.1.2 (RHEL5 std compiler) --- diff --git a/Makefile b/Makefile index 3450def..b989348 100644 --- a/Makefile +++ b/Makefile @@ -183,7 +183,7 @@ HOSTCC = gcc HOSTCXX = g++ 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. @@ -480,7 +480,7 @@ endif ifdef CONFIG_DEBUG_INFO CFLAGS += -g else -CFLAGS += -O2 +CFLAGS += -O endif