summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgcc.pkg.in/postinst2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc.pkg.in/postinst b/gcc.pkg.in/postinst
index ae943bc..0aa4796 100755
--- a/gcc.pkg.in/postinst
+++ b/gcc.pkg.in/postinst
@@ -5,6 +5,8 @@ if [ "x${1}" = 'xconfigure' ]; then
ln -sf @PKG_TARGET_ARCH@-gcc /usr/bin/gcc
printf '#!/bin/sh\nexec gcc -std=c89 "${@}"\n' >/usr/bin/c89.gcc
printf '#!/bin/sh\nexec gcc -std=c99 "${@}"\n' >/usr/bin/c99.gcc
+ chmod a+x /usr/bin/c89.gcc
+ chmod a+x /usr/bin/c99.gcc
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 20
update-alternatives --install /usr/bin/c89 c89 \
/usr/bin/c89.gcc 20