diff options
author | Matteo Bernardini | 2021-04-08 19:35:50 +0200 |
---|---|---|
committer | Matteo Bernardini | 2021-04-08 19:35:50 +0200 |
commit | afc9e42772de8a69a6c2a028e98dc5ca8d96df52 (patch) | |
tree | 1005b4879f8fb6b3be051d8ac93d1b40220fbecd /development/gcc5/c99.sh | |
parent | a6bf666d73b4dccae0636e4ca04113d5953b956c (diff) | |
download | slackbuilds-current-20210408.1.tar.gz |
20210408.1 global branch merge.current-20210408.1
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 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+"$@"} |