diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-12-19 13:50:21 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-12-19 13:50:21 +0000 |
commit | 2794f0bac8216b14607e7a8f02c59fe4e10507b0 (patch) | |
tree | 2b4462b5f2176d0e1344eab35a80bc9ddae7f9b5 /gnu/usr.bin | |
parent | ef790bfeefa456354c8b2646ff4757f1c9770125 (diff) |
Add a second keep-locals entry to stop getopt from treating -k as an
abbreviation for --keep-locals. from binutils-current.
millert@ ok.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils/gas/as.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gas/as.c b/gnu/usr.bin/binutils/gas/as.c index e8c22125f7f..57449870bae 100644 --- a/gnu/usr.bin/binutils/gas/as.c +++ b/gnu/usr.bin/binutils/gas/as.c @@ -374,6 +374,10 @@ parse_args (pargc, pargv) static const struct option std_longopts[] = { #define OPTION_HELP (OPTION_STD_BASE) {"help", no_argument, NULL, OPTION_HELP}, + /* getopt allows abbreviations, so we do this to stop it from + treating -k as an abbreviation for --keep-locals. Some + ports use -k to enable PIC assembly. */ + {"keep-locals", no_argument, NULL, 'L'}, {"keep-locals", no_argument, NULL, 'L'}, {"mri", no_argument, NULL, 'M'}, #define OPTION_NOCPP (OPTION_STD_BASE + 1) |