Add support for naming the DLL from the command line.
This commit is contained in:
parent
228a2b3ae5
commit
7cd2edbb66
|
@ -122,6 +122,7 @@ static void do_include( const char *arg );
|
|||
static void do_k_flags( const char *arg );
|
||||
static void do_exe_mode( const char *arg );
|
||||
static void do_module( const char *arg );
|
||||
static void do_name( const char *arg );
|
||||
static void do_spec( const char *arg );
|
||||
static void do_def( const char *arg );
|
||||
static void do_exe( const char *arg );
|
||||
|
@ -150,6 +151,7 @@ static const struct option_descr option_table[] =
|
|||
{ "-L", 1, do_lib, "-L directory Look for imports libraries in 'directory'" },
|
||||
{ "-l", 1, do_import, "-l lib.dll Import the specified library" },
|
||||
{ "-dl", 1, do_dimport, "-dl lib.dll Delay-import the specified library" },
|
||||
{ "-N", 1, do_name, "-N dllname Set the DLL name (default: set from input file name)" },
|
||||
{ "-res", 1, do_rsrc, "-res rsrc.res Load resources from rsrc.res" },
|
||||
{ "-o", 1, do_output, "-o name Set the output file name (default: stdout)\n" },
|
||||
{ "-sym", 0, do_sym, NULL }, /* ignored for backwards compatibility */
|
||||
|
@ -219,6 +221,12 @@ static void do_k_flags( const char *arg )
|
|||
/* ignore all other flags */
|
||||
}
|
||||
|
||||
static void do_name( const char *arg )
|
||||
{
|
||||
strncpy( DLLName, arg, sizeof(DLLName) );
|
||||
DLLName[sizeof(DLLName) - 1] = 0;
|
||||
}
|
||||
|
||||
static void do_spec( const char *arg )
|
||||
{
|
||||
if (exec_mode != MODE_NONE || !arg[0]) do_usage();
|
||||
|
|
Loading…
Reference in New Issue