summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-06-13 19:43:41 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-06-13 19:43:41 +0200
commitfdaf410f4874073e738c6bc82ce6a09773a2b085 (patch)
tree01821aad3b730a2b42b854b6939e06d5d65e1f54
parent47223981bccbf79d81a0b17657539432dacf36e2 (diff)
needed for some autotool magic
-rw-r--r--mk/vars.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 5a6359910..725e8137b 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -69,7 +69,8 @@ TARGET_LD:= ${TARGET_COMPILER_PREFIX}ld
TARGET_CPPFLAGS:=
TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts
TARGET_CXXFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident
-TARGET_LDFLAGS:= -Wl,-O2 -Wl,-rpath -Wl,/usr/lib \
+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
ifneq ($(ADK_NATIVE),)