mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
57a75502dd
Signed-off-by: Eric Hameleers <alien@slackware.com> Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
11 lines
240 B
Bash
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+"$@"}
|