summaryrefslogtreecommitdiffstats
path: root/development/gcc5/c99.sh
diff options
context:
space:
mode:
author Matteo Bernardini2019-11-23 17:01:07 +0100
committer Matteo Bernardini2019-11-23 17:01:07 +0100
commit6b48d82e578c25792056a160476598a0c7cb5f21 (patch)
treeb46961106d9f7c026b81a685bc26d23b5052b19e /development/gcc5/c99.sh
parent12d62c31c39761316cffa2b3236f1e96ba97caf3 (diff)
downloadslackbuilds-6b48d82e578c25792056a160476598a0c7cb5f21.tar.gz
20191123.1 global branch merge.current-20191123.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/gcc5/c99.sh')
-rw-r--r--development/gcc5/c99.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/development/gcc5/c99.sh b/development/gcc5/c99.sh
new file mode 100644
index 0000000000..c33636937c
--- /dev/null
+++ b/development/gcc5/c99.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+fl="-std=c99"
+CC=${CC:-"gcc"}
+for opt; do
+ case "$opt" in
+ -std=c99|-std=iso9899:1999) fl="";;
+ -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2
+ exit 1;;
+ esac
+done
+exec $CC $fl ${1+"$@"}