summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-02 12:20:16 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-02 12:20:16 (EDT)
commit7d2fc2902f26f9f38072e3faeda20621ed559707 (patch)
tree357ccd232d316fc290458bfad0154bddf264d874
parent7c58da3248f3a751fa241291fa71ae0dabb09dbd (diff)
gcc: Make c89.gcc and c99.gcc scripts executable.
-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