From 90b0a595acb2cb74567bbe0c44af9cc3fd10b5a6 Mon Sep 17 00:00:00 2001 From: Georg Wassen <wassen@lfbs.rwth-aachen.de> Date: Mon, 18 Aug 2014 18:06:27 +0200 Subject: [PATCH] fix: build error on Ubuntu 4.8.2-l9ubuntul) with GCC 4.8.2 This version (not clear if GCC >= 4.8.2 or Ubuntu) needs additional --ffreestanding in C32FLAGS. Reported and fixed by Gabriel-Alexander Reschke. Thanks! --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f7e8ed6..adb20f6 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,10 @@ SMP=2 # default command line for QEMU CMDLINE=test -C32FLAGS=$(CFLAGS) +C32FLAGS=$(CFLAGS) -ffreestanding +# note: appears to be required with GCC >= 4.8.2 (at least reported with 4.8.2 (Ubuntu 4.8.2-l9ubuntul)), +# with 4.8.1 on OpenSUSE 13.1 this option was not required. +# Thanks to Gabriel-Alexander Reschke C64FLAGS=$(CFLAGS) -ffreestanding -mcmodel=large -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow # extra Parameters for 64 bit C code # -ffreestanding -- GitLab