diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-28 19:16:50 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-28 19:44:52 +0200 |
commit | 248c00d7dd21b553613b01293570df0b1ccaa61b (patch) | |
tree | 1f4c91257fc167df858e1e726894b6b82fb3ff83 | |
parent | 96ec88adf768aa16ddb1502c4515d688890d7879 (diff) |
Darwin: host-tools shouldn't use -rpath
-rw-r--r-- | mk/vars.mk | 4 |
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 |