aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-09 19:53:12 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-09 19:53:12 +0000
commit43ce4dfe9efd48694cc7e9312f4e845304b2e532 (patch)
tree18b6550bb9c9cc882eda34a1ce05414edd88f824 /Makefile
parentebc06f87cac28301bf30e8d23a069691a8db3635 (diff)
added static build option
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@229 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 53f8f1be81..12cba2927a 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,10 @@ LIBS=
DEFINES=-DHAVE_BYTESWAP_H
HELPER_CFLAGS=$(CFLAGS)
+ifdef CONFIG_STATIC
+LDFLAGS+=-static
+endif
+
ifeq ($(ARCH),i386)
CFLAGS+=-fomit-frame-pointer
OP_CFLAGS=$(CFLAGS) -mpreferred-stack-boundary=2