summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/vars.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 657d44ae5..c2844e954 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -86,7 +86,7 @@ TARGET_CXXFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident
TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \
-Wl,-O2 -Wl,-rpath -Wl,/usr/lib \
-Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib \
- $(ADK_TARGET_ABI_LDFLAGS)
+ $(ADK_TARGET_ABI_LDFLAGS) $(TARGET_CFLAGS_ARCH)
ifneq ($(ADK_NATIVE),)
TARGET_CPPFLAGS:=