diff options
-rw-r--r-- | binutils.pkg.in/postinst | 2 | ||||
-rw-r--r-- | binutils.pkg.in/prerm | 1 | ||||
-rwxr-xr-x | build | 2 |
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 @@ -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; \ |