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

ron minnich rminnich at gmail.com
Wed May 20 09:11:49 EST 2009


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.

diff --git a/Documentation/lguest/Makefile b/Documentation/lguest/Makefile
index 1f4f9e8..28c8cdf 100644
--- 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_SOU
RCE

 all: lguest



More information about the Lguest mailing list