summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-29 13:07:54 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-29 13:07:54 +0100
commit3fb67678728e4502937f1451f092ea95fe5b69e3 (patch)
treeb0b42207bc36604f446fb2cec90e5953126b8318
parent4c5aa6b015227ce1639ed0948f794bc69f826fb4 (diff)
downloadembtoolkit-3fb67678728e4502937f1451f092ea95fe5b69e3.tar.gz
embtoolkit-3fb67678728e4502937f1451f092ea95fe5b69e3.tar.bz2
embtoolkit-3fb67678728e4502937f1451f092ea95fe5b69e3.tar.xz
Build system: use more portable sed -i script
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--mk/macros.packages.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/macros.packages.mk b/mk/macros.packages.mk
index c2832e4..eea74fc 100644
--- a/mk/macros.packages.mk
+++ b/mk/macros.packages.mk
@@ -85,8 +85,8 @@ __lt_path = $(addprefix $(embtk_sysroot)/usr/,$(or $(1),$(LIBDIR)))
define __embtk_fix_libtool_files
__lt_las=$$(find $(__lt_path) -name '*.la'); \
for la in $$__lt_las; do \
- sed -i "s;$(__ltlibdirold);$(__ltlibdirnew);" $$la; \
- sed -i "s;$(__lt_usr/lib);$(__lt_sysroot/usr/lib);g" $$la; \
+ sed -i '' "s;$(__ltlibdirold);$(__ltlibdirnew);" $$la; \
+ sed -i '' "s;$(__lt_usr/lib);$(__lt_sysroot/usr/lib);g" $$la; \
done
endef
libtool_files_adapt:
@@ -113,8 +113,8 @@ define __embtk_kill_lt_rpath
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; \
+ 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