X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fsrc%2Flibrary-cfg.sh;h=674baa60d5dd2423dfefea21b6fe204b29289efa;hp=47470d46d1b8e6f8c4296ddb4ff3e2be8aa3acf6;hb=31418a0e4a6f75ceffc9fee20ddbe390209a4ef4;hpb=1713400c1c9b80cb7cb9d204acb0525dc592b07d;ds=sidebyside diff --git a/Ada95/src/library-cfg.sh b/Ada95/src/library-cfg.sh index 47470d46..674baa60 100755 --- a/Ada95/src/library-cfg.sh +++ b/Ada95/src/library-cfg.sh @@ -27,7 +27,7 @@ # authorization. # ############################################################################## # -# $Id: library-cfg.sh,v 1.3 2018/01/15 14:32:47 tom Exp $ +# $Id: library-cfg.sh,v 1.4 2018/11/10 22:58:52 tom Exp $ # # Work around incompatible behavior introduced with gnat6, which causes # gnatmake to attempt to compile all of the C objects which might be part of @@ -40,8 +40,15 @@ shift 1 param= while test $# != 0 do - test -n "$param" && param="$param," - param="$param\"$1\"" + case "x$1" in + *-[OgDIWf]*) + test -n "$param" && param="$param," + param="$param\"$1\"" + ;; + *) + echo "${0##*/}: ignored option $1" >&2 + ;; + esac shift 1 done