summaryrefslogtreecommitdiffstats
path: root/development/gcc5/c89.sh
diff options
context:
space:
mode:
author Matteo Bernardini2019-01-12 10:52:52 +0100
committer Matteo Bernardini2019-01-12 10:52:52 +0100
commit59ce4cdb79e54fe0742dffc22c20bafc852554a8 (patch)
tree7d761db1ebc3cf6034d71c9422a2a318eb07ae1c /development/gcc5/c89.sh
parent41c54da65e296555cd584ba04099aa8ed34e385e (diff)
downloadslackbuilds-2a64565b3fcfc1895088c413343429b2fbf0ec8d.tar.gz
20190112.1 global branch merge.current-20190112.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/gcc5/c89.sh')
-rw-r--r--development/gcc5/c89.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/development/gcc5/c89.sh b/development/gcc5/c89.sh
new file mode 100644
index 0000000000..424b1e1669
--- /dev/null
+++ b/development/gcc5/c89.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+fl="-std=c89"
+CC=${CC:-"gcc"}
+for opt; do
+ case "$opt" in
+ -ansi|-std=c89|-std=iso9899:1990) fl="";;
+ -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2
+ exit 1;;
+ esac
+done
+exec $CC $fl ${1+"$@"}