Hi Rusty,

Here is the most important patch I created in your tutorial session :).
Makes it much easier to develop on newer Ubuntu's.

Tim
>From 95d2f260fef349da554aac3652fb4aef5e4ced08 Mon Sep 17 00:00:00 2001
From: Tim 'mithro' Ansell <mit...@mithis.com>
Date: Thu, 22 Jan 2009 15:06:41 +1100
Subject: [PATCH] Disable the FORTIFY for lguest.

Makes all the warnings go away when compiling lguest on Ubuntu on
Intrepid of greater.

Signed-off-by: Timothy R Ansell <mit...@mithis.com>
---
 Documentation/lguest/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/lguest/Makefile b/Documentation/lguest/Makefile
index 725eef8..1f4f9e8 100644
--- a/Documentation/lguest/Makefile
+++ b/Documentation/lguest/Makefile
@@ -1,5 +1,5 @@
 # This creates the demonstration utility "lguest" which runs a Linux guest.
-CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include
+CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE
 LDLIBS:=-lz
 
 all: lguest
-- 
1.5.6.3

_______________________________________________
Lguest mailing list
Lguest@ozlabs.org
https://ozlabs.org/mailman/listinfo/lguest

Reply via email to