diff options
author | Linda Zhang <lindasc@qq.com> | 2020-11-20 11:07:26 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-11-20 11:07:26 +0000 |
commit | 8881640c8071b04fa2566f21eb2a47e691caf11c (patch) | |
tree | e4e6d71aa835f0722613838a6100a1adef430845 /binutils/dllwrap.c | |
parent | cc6fd584ed920b14d57703bb62c9ed773cea3732 (diff) | |
download | binutils-8881640c8071b04fa2566f21eb2a47e691caf11c.zip binutils-8881640c8071b04fa2566f21eb2a47e691caf11c.tar.gz binutils-8881640c8071b04fa2566f21eb2a47e691caf11c.tar.bz2 |
Add a warning to dllwrap that it is deprecated.
PR 20979
* dllwrap.c (main): Deprecate and warn the use of dllwrap.
Diffstat (limited to 'binutils/dllwrap.c')
-rw-r--r-- | binutils/dllwrap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c index c8cdf84..97c8cb8 100644 --- a/binutils/dllwrap.c +++ b/binutils/dllwrap.c @@ -639,6 +639,9 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + warn (_("WARNING: %s is deprecated, use gcc -shared or ld -shared instead\n"), + prog_name); + expandargv (&argc, &argv); saved_argv = (char **) xmalloc (argc * sizeof (char*)); |