summaryrefslogtreecommitdiffstats
path: root/gcc.pkg.in/postinst
blob: c0be0542243268b0063cf8fe25777662f89fd7df (plain)
1
2
3
4
5
6
7
8
#! /bin/sh

if [ "x${1}" = 'xconfigure' ]; then
	if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then
		ln -sf @PKG_TARGET_ARCH@-gcc /usr/bin/gcc
		update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 20
	fi
fi