qemu: filter out configure args with predefined macros
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 21 May 2020 02:01:08 +0000 (10:01 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Thu, 21 May 2020 03:16:07 +0000 (11:16 +0800)
Reported-by: https://github.com/openwrt/packages/commit/a3033406eae94105b50ea9d57ea4a032b34a87a1#commitcomment-39321758
Suggested-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
utils/qemu/Makefile

index a816edfd622c5cf8a3e7411755f14d12df21cbfc..edefa5831274b02e2bb4a84abb4314a8867f4da7 100644 (file)
@@ -276,8 +276,8 @@ CONFIGURE_ARGS:=$(filter-out        \
        --program-prefix=%      \
        --program-suffix=%      \
        --exec-prefix=%         \
-       --disable-ipv6          \
-       --disable-nls           \
+       $(DISABLE_NLS)          \
+       $(DISABLE_IPV6)         \
        , $(CONFIGURE_ARGS))
 
 # Tell build system of qemu to not add _FORTIFY_SOURCE options and let the base