slackbuilds_ponce/development/gcc5/c89.sh
Eric Hameleers 57a75502dd 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>
2021-04-18 12:22:49 +02:00

11 lines
240 B
Bash

#!/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+"$@"}