diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-09 09:29:45 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-09 09:29:45 +0200 |
commit | fa00f362016dafcf31203a11250b6088f45a8995 (patch) | |
tree | 626001c29c9fb71333abbd1d1fe437a193979074 | |
parent | ef082161e913b2e5b794224f8f3c3bf18cd3cdd6 (diff) | |
download | embtoolkit-fa00f362016dafcf31203a11250b6088f45a8995.tar.gz embtoolkit-fa00f362016dafcf31203a11250b6088f45a8995.tar.bz2 embtoolkit-fa00f362016dafcf31203a11250b6088f45a8995.tar.xz |
Build system: encode rpath on host installed packages
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r-- | mk/macros.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/macros.mk b/mk/macros.mk index 79fc367..87f07b5 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -265,7 +265,7 @@ define embtk_configure_hostpkg $(call __embtk_print_configure_opts,"$($(PKGV)_CONFIGURE_OPTS)") @cd $($(PKGV)_BUILD_DIR); \ CPPFLAGS="-I$(HOSTTOOLS)/usr/include" \ - LDFLAGS="-L$(HOSTTOOLS)/$(LIBDIR) -L$(HOSTTOOLS)/usr/$(LIBDIR)" \ + LDFLAGS="-L$(HOSTTOOLS)/usr/lib -Wl,-rpath,$(HOSTTOOLS)/usr/lib" \ $(if $(call __embtk_mk_strcmp,$(PKGV),CCACHE),,CC=$(HOSTCC_CACHED)) \ $(if $(call __embtk_mk_strcmp,$(PKGV),CCACHE),,CXX=$(HOSTCXX_CACHED)) \ $($(PKGV)_CONFIGURE_ENV) \ |