diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-12-28 21:20:24 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-12-28 21:20:24 +0100 |
commit | 98e96e173c206b95306d2a8b0a1fdedbc1a441f2 (patch) | |
tree | 558e38866c44e11bbfbade27a58b47af63271e9b /mk | |
parent | 6c9bad62efb171dc08008577984eafbb212a176b (diff) | |
download | embtoolkit-98e96e173c206b95306d2a8b0a1fdedbc1a441f2.tar.gz embtoolkit-98e96e173c206b95306d2a8b0a1fdedbc1a441f2.tar.bz2 embtoolkit-98e96e173c206b95306d2a8b0a1fdedbc1a441f2.tar.xz |
EMBTK: create a macro which removes libtool rpath in packages
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/macros.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mk/macros.mk b/mk/macros.mk index c8ce252..e048d5c 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -154,3 +154,14 @@ else mv $$i.new $$i; \ done endif + +#A macro to remove rpath in packages that use libtool -rpath +define KILL_LT_RPATH + $(Q)cd $(1); \ + LOCAL_LT_FILES=`find -type f -name libtool`; \ + for i in $$LOCAL_LT_FILES; \ + do \ + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' $$i; \ + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' $$i; \ + done +endef |