summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--binutils.pkg.in/postinst2
-rw-r--r--binutils.pkg.in/prerm1
-rwxr-xr-xbuild2
3 files changed, 5 insertions, 0 deletions
diff --git a/binutils.pkg.in/postinst b/binutils.pkg.in/postinst
index ebd719d..c2bdc2a 100644
--- a/binutils.pkg.in/postinst
+++ b/binutils.pkg.in/postinst
@@ -4,5 +4,7 @@ if [ "x${1}" = 'xconfigure' ]; then
if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then
update-alternatives --install /usr/bin/ar ar \
/usr/bin/ar.binutils 20
+ update-alternatives --install /usr/bin/strings strings \
+ /usr/bin/strings.binutils 20
fi
fi
diff --git a/binutils.pkg.in/prerm b/binutils.pkg.in/prerm
index 0eda014..6966487 100644
--- a/binutils.pkg.in/prerm
+++ b/binutils.pkg.in/prerm
@@ -3,5 +3,6 @@
if [ "${1}" = remove ]; then
if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then
update-alternatives --remove ar /usr/bin/ar.binutils
+ update-alternatives --remove strings /usr/bin/strings.binutils
fi
fi
diff --git a/build b/build
index 7ed10b6..a9fbab4 100755
--- a/build
+++ b/build
@@ -115,6 +115,8 @@ install: build
for util in "binutils-$${target}.data/usr/bin/$${target}-"*; do \
if [ "$${util##*/$${target}-}" = 'ar' ]; then \
dest='ar.binutils'; \
+ elif [ "$${util##*/$${target}-}" = 'strings' ]; then \
+ dest='strings.binutils'; \
else \
dest="$${util##*/$${target}-}"; \
fi; \