summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-03-28 19:16:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-28 19:44:52 +0200
commit248c00d7dd21b553613b01293570df0b1ccaa61b (patch)
tree1f4c91257fc167df858e1e726894b6b82fb3ff83
parent96ec88adf768aa16ddb1502c4515d688890d7879 (diff)
Darwin: host-tools shouldn't use -rpath
-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