Duplicate entry for --compact-implib so that it is not confused with -c.
authorNick Clifton <nickc@redhat.com>
Tue, 17 Dec 2002 10:03:52 +0000 (10:03 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 17 Dec 2002 10:03:52 +0000 (10:03 +0000)
ld/ChangeLog
ld/emultempl/pe.em

index 75d04d928617d8216c5233e9f10885866540c7f7..02d9e4234d74a8cf053e9673c79973eafb597c93 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-17  Nick Clifton  <nickc@redhat.com>
+
+       * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
+       so that it is not confused with -c.
+
 2002-12-13  Ralf Habacker  <Ralf.Habacker@freenet.de>
             Charles Wilson  <cwilson@ece.gatech.edu>
 
index d350ee8bfcb2a9f271853487c26e3febf5bf11fb..061401f26fbee8f253841c40cd08dbf7334bd0c8 100644 (file)
@@ -260,6 +260,9 @@ static struct option longopts[] = {
   {"disable-stdcall-fixup", no_argument, NULL, OPTION_DISABLE_STDCALL_FIXUP},
   {"out-implib", required_argument, NULL, OPTION_IMPLIB_FILENAME},
   {"warn-duplicate-exports", no_argument, NULL, OPTION_WARN_DUPLICATE_EXPORTS},
+  /* getopt() allows abbreviations, so we do this to stop it from
+     treating -c as an abbreviation for these --compat-implib.  */
+  {"compat-implib", no_argument, NULL, OPTION_IMP_COMPAT},
   {"compat-implib", no_argument, NULL, OPTION_IMP_COMPAT},
   {"enable-auto-image-base", no_argument, NULL, OPTION_ENABLE_AUTO_IMAGE_BASE},
   {"disable-auto-image-base", no_argument, NULL, OPTION_DISABLE_AUTO_IMAGE_BASE},