diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2017-09-04 12:09:57 +0200 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2017-09-04 12:09:57 +0200 |
commit | ad4972fe57ab3fe65c1057609450c214d4f98154 (patch) | |
tree | 81f9948d3478307bbcd0f2bc84811ae39bcd3a4e /dev-lang/gnat-gpl/files/c99 | |
parent | dev-cpp/sparsehash: Remove automagic dep on google-perftools (diff) | |
download | gentoo-ad4972fe57ab3fe65c1057609450c214d4f98154.tar.gz gentoo-ad4972fe57ab3fe65c1057609450c214d4f98154.tar.bz2 gentoo-ad4972fe57ab3fe65c1057609450c214d4f98154.zip |
dev-lang/gnat-gpl: Remove usage of PORTDIR. Fix bug #629764
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'dev-lang/gnat-gpl/files/c99')
-rw-r--r-- | dev-lang/gnat-gpl/files/c99 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-lang/gnat-gpl/files/c99 b/dev-lang/gnat-gpl/files/c99 new file mode 100644 index 000000000000..c9542095e385 --- /dev/null +++ b/dev-lang/gnat-gpl/files/c99 @@ -0,0 +1,21 @@ +#! /bin/sh + +# Call the appropriate C compiler with options to accept ANSI/ISO C +# The following options are the same (as of gcc-3.3): +# -std=c99 +# -std=c9x +# -std=iso9899:1999 +# -std=iso9899:199x + +for i; do + case "$i" in + -std=c9[9x]|-std=iso9899:199[9x]) + ;; + -ansi|-std=*) + echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i" + exit 1 + ;; + esac +done + +exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"} |