summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/vars.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index ab9c0dcc1..1f4206b29 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -293,7 +293,11 @@ endif
# host compiler and linker flags
HOST_CPPFLAGS:= -I$(STAGING_HOST_DIR)/usr/include
+ifeq ($(OS_FOR_BUILD),Darwin)
+HOST_LDFLAGS:= -L$(STAGING_HOST_DIR)/usr/lib
+else
HOST_LDFLAGS:= -L$(STAGING_HOST_DIR)/usr/lib -Wl,-rpath -Wl,${STAGING_HOST_DIR}/usr/lib
+endif
ifneq (${ADK_UPDATE_PATCHES_GIT},)
PATCH= PATH='${HOST_PATH}' ${BASH} $(SCRIPT_DIR)/patch_git.sh