summaryrefslogtreecommitdiffstats
path: root/binutils.pkg.in/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'binutils.pkg.in/postinst')
-rw-r--r--binutils.pkg.in/postinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils.pkg.in/postinst b/binutils.pkg.in/postinst
new file mode 100644
index 0000000..ebd719d
--- /dev/null
+++ b/binutils.pkg.in/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+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
+ fi
+fi