summaryrefslogtreecommitdiffstats
path: root/gcc.pkg.in/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc.pkg.in/prerm')
-rwxr-xr-xgcc.pkg.in/prerm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc.pkg.in/prerm b/gcc.pkg.in/prerm
index 5d0150b..a980d35 100755
--- a/gcc.pkg.in/prerm
+++ b/gcc.pkg.in/prerm
@@ -1,5 +1,8 @@
#! /bin/sh
if [ "${1}" = remove ]; then
- update-alternatives --remove cc /usr/bin/gcc
+ if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then
+ rm -f /usr/bin/gcc
+ update-alternatives --remove cc /usr/bin/gcc
+ fi
fi