From: Eneas U de Queiroz Date: Sat, 23 May 2020 16:01:13 +0000 (-0300) Subject: lxc: use -minterlink-mips16 only with USE_MIPS16 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a1baf2eae0bbaafb5b50613e03070f45c89f995f;p=openwrt-packages.git lxc: use -minterlink-mips16 only with USE_MIPS16 The flag is either not supported or not needed unless there's mixed mips/mips16 code. Signed-off-by: Eneas U de Queiroz --- diff --git a/utils/lxc/Makefile b/utils/lxc/Makefile index f31c5f3b8..0a5c37992 100644 --- a/utils/lxc/Makefile +++ b/utils/lxc/Makefile @@ -142,7 +142,9 @@ CONFIGURE_ARGS += \ --enable-capabilities \ --disable-examples -TARGET_CFLAGS += -minterlink-mips16 +ifdef CONFIG_USE_MIPS16 + TARGET_CFLAGS += -minterlink-mips16 +endif TARGET_LDFLAGS += -lgcc_eh define Build/InstallDev