summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-10-11 10:49:59 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-10-11 10:49:59 +0200
commite66927826721685024625db0769a27a2d72b1aec (patch)
treef0d5bd4850a2837c0f4c5d9fb44047e8c8cc963d
parentdf38bd0d2ffcfdf36c2992aaa2d852dbf3bb1c7f (diff)
downloadembtoolkit-e66927826721685024625db0769a27a2d72b1aec.tar.gz
embtoolkit-e66927826721685024625db0769a27a2d72b1aec.tar.bz2
embtoolkit-e66927826721685024625db0769a27a2d72b1aec.tar.xz
Toolchain: binutils: also patch DLOPEN_LIBS for -ldl on BSD systems
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--core/toolchain/binutils/binutils.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/toolchain/binutils/binutils.mk b/core/toolchain/binutils/binutils.mk
index 9e28258..acaf1e7 100644
--- a/core/toolchain/binutils/binutils.mk
+++ b/core/toolchain/binutils/binutils.mk
@@ -46,7 +46,8 @@ define embtk_beforeinstall_binutils
__srcdir=$(call __embtk_pkg_srcdir,binutils); \
mkfiles=$$(find $${__srcdir} -type f -name 'Makefile.in'); \
for m in $${mkfiles}; do \
- sed -e 's/-ldl//g' < $$m > $$m.tmp; \
+ sed -e 's/-ldl//g' -e 's/@DLOPEN_LIBS@//g' \
+ < $$m > $$m.tmp; \
mv $$m.tmp $$m; \
done;)
bfdtxi=$(call __embtk_pkg_srcdir,binutils)/bfd/doc/bfd.texinfo; \