diff options
author | Matteo Bernardini | 2019-03-30 08:53:10 +0100 |
---|---|---|
committer | Matteo Bernardini | 2019-03-30 08:53:10 +0100 |
commit | 37f81333f74286adfe76ea53c2b701b0117e0776 (patch) | |
tree | 2a09dae8766cfae8cb4d655a42477e0d6a2a0bf8 /development/gcc5/c99.sh | |
parent | 158e3ce0a80a1028c48af5d639f5fde39c94af3c (diff) | |
download | slackbuilds-current-20190330.1.tar.gz |
20190330.1 global branch merge.current-20190330.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+"$@"} |