diff options
author | Matteo Bernardini | 2019-03-02 09:06:36 +0100 |
---|---|---|
committer | Matteo Bernardini | 2019-03-02 09:06:36 +0100 |
commit | 8142e5f661606651e9782298933c833f346346ca (patch) | |
tree | f3b4e57a91421eaf51c8ceabef2b7b4734699821 /development/gcc5/c89.sh | |
parent | db85da7f3d5e8b6efdf53de3d8c8f7f0dfded399 (diff) | |
download | slackbuilds-8142e5f661606651e9782298933c833f346346ca.tar.gz |
20190302.1 global branch merge.current-20190302.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/gcc5/c89.sh')
-rw-r--r-- | development/gcc5/c89.sh | 11 |
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+"$@"} |