diff options
author | Eric Hameleers <alien@slackware.com> | 2017-07-09 21:52:00 +0200 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2021-04-18 12:22:49 +0200 |
commit | 57a75502dd1e88aaa949c0e4c684c10783438f6b (patch) | |
tree | f89001c119e27f1b864355be6da8ecb56735d88b /development/gcc5/c99.sh | |
parent | cde5c421d142bb126a1cfe409d0b0ea2bdcf1fa8 (diff) |
development/gcc5: Added (gcc version 5 C, C++ and Java compilers).
Signed-off-by: Eric Hameleers <alien@slackware.com>
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/gcc5/c99.sh')
-rw-r--r-- | development/gcc5/c99.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/development/gcc5/c99.sh b/development/gcc5/c99.sh new file mode 100644 index 0000000000000..c33636937c2d9 --- /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+"$@"} |