summaryrefslogtreecommitdiff
path: root/package/qemu
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-25 21:49:05 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-25 21:49:31 +0200
commit5b52fb59575fab6dc3e9e9af8e874289de731611 (patch)
tree28add2169d7ad0c24c386196c4b8a8ff28dc8a3a /package/qemu
parent8777c2141077117f3e5b550accb691ead2d21635 (diff)
allow to enable PIE
Diffstat (limited to 'package/qemu')
-rw-r--r--package/qemu/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/qemu/Makefile b/package/qemu/Makefile
index e12649311..c7b486509 100644
--- a/package/qemu/Makefile
+++ b/package/qemu/Makefile
@@ -30,9 +30,10 @@ 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
+ifeq ($(ADK_TARGET_USE_PIE),y)
+CONFIGURE_ARGS+= --enable-pie
+else
+CONFIGURE_ARGS+= --disable-pie
endif
CONFIG_STYLE:= minimal