summaryrefslogtreecommitdiff
path: root/package/qemu/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-07 20:53:25 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-07 20:55:37 +0200
commit5d04ab914553aa65e3de2a126bef713b21deaf05 (patch)
tree90365f3ca2dbb5664346bc919d463613f363deff /package/qemu/Makefile
parent73ff1e6a6cc90c5f54985547e490016ce375656a (diff)
allow static build
Diffstat (limited to 'package/qemu/Makefile')
-rw-r--r--package/qemu/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/qemu/Makefile b/package/qemu/Makefile
index b4c20b14e..e12649311 100644
--- a/package/qemu/Makefile
+++ b/package/qemu/Makefile
@@ -29,6 +29,12 @@ $(eval $(call PKG_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS
ifeq ($(ADK_TARGET_LIB_MUSL),y)
TARGET_CFLAGS+= -DF_EXLCK=4 -DF_SHLCK=8 -D__SIGRTMIN=32 -D__SIGRTMAX=\(NSIG-1\)
endif
+
+ifeq ($(ADK_STATIC),y)
+TARGET_CFLAGS+= -static
+TARGET_LDFLAGS+= -static
+endif
+
CONFIG_STYLE:= minimal
CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
--cross-prefix=$(GNU_TARGET_NAME)- \