summaryrefslogtreecommitdiff
path: root/package/qemu
diff options
context:
space:
mode:
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