[PATCH] Enable dlltool's -t option

Stephen Kitt steve@sk2.org
Mon May 11 20:57:00 GMT 2015


Hi,

I noticed that dlltool supports a -t option to set tmp_prefix, but the list
of options passed to getopt_long() doesn't include "t:" so the option is
inaccessible. I'd like to use this in Debian to facilitate reproducible builds
of software building import libraries (e.g. mingw-w64).

The following patch enables the option.

Signed-off-by: Stephen Kitt <steve@sk2.org>


diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index be08227..c9f7806 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -4091,9 +4091,9 @@ main (int ac, char **av)
 
   while ((c = getopt_long (ac, av,
 #ifdef DLLTOOL_MCORE_ELF
-                          "m:e:l:aD:d:z:b:xp:cCuUkAS:f:nI:vVHhM:L:F:",
+                          "m:e:l:aD:d:z:b:xp:cCuUkAS:t:f:nI:vVHhM:L:F:",
 #else
-                          "m:e:l:y:aD:d:z:b:xp:cCuUkAS:f:nI:vVHh",
+                          "m:e:l:y:aD:d:z:b:xp:cCuUkAS:t:f:nI:vVHh",
 #endif
                           long_options, 0))
         != EOF)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20150511/ccf4d17c/attachment.sig>


More information about the Binutils mailing list