[Lguest] simple fix for 32-bit and static builds

Rusty Russell rusty at rustcorp.com.au
Wed May 20 13:18:34 EST 2009


On Wed, 20 May 2009 08:41:49 am ron minnich wrote:
> This simple fix allows you to build 32-bit lguest command. It does not
> need -lz any more and removing the reference lets me build a
> statically-linked version.

Oops.  Thanks, I should have removed that ages ago.

Your patch was wrapped and not signed off, but I re-implemented it:

lguest: clean up example launcher compile flags.

18 months ago 5bbf89fc260830f3f58b331d946a16b39ad1ca2d changed to loading
bzImages directly, and no longer manually ungzipping them, so we no longer
need libz.

Also, -m32 is useful for those on 64-bit platforms (and harmless on
32-bit).

Reported-by: Ron Minnich <rminnich at gmail.com>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
---
 Documentation/lguest/Makefile |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Documentation/lguest/Makefile b/Documentation/lguest/Makefile
--- a/Documentation/lguest/Makefile
+++ b/Documentation/lguest/Makefile
@@ -1,6 +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 -U_FORTIFY_SOURCE
-LDLIBS:=-lz
+CFLAGS:=-m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -
I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE
 
 all: lguest
 




More information about the Lguest mailing list