winebuild: Add -b as a short option for --target for gcc compatibility.
This commit is contained in:
parent
022ae89e0f
commit
034a7f8849
|
@ -223,6 +223,7 @@ static const char usage_str[] =
|
||||||
"Usage: winebuild [OPTIONS] [FILES]\n\n"
|
"Usage: winebuild [OPTIONS] [FILES]\n\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" --as-cmd=AS Command to use for assembling (default: as)\n"
|
" --as-cmd=AS Command to use for assembling (default: as)\n"
|
||||||
|
" -b, --target=TARGET Specify target CPU and platform for cross-compiling\n"
|
||||||
" -d, --delay-lib=LIB Import the specified library in delayed mode\n"
|
" -d, --delay-lib=LIB Import the specified library in delayed mode\n"
|
||||||
" -D SYM Ignored for C flags compatibility\n"
|
" -D SYM Ignored for C flags compatibility\n"
|
||||||
" -e, --entry=FUNC Set the DLL entry point function (default: DllMain)\n"
|
" -e, --entry=FUNC Set the DLL entry point function (default: DllMain)\n"
|
||||||
|
@ -247,7 +248,6 @@ static const char usage_str[] =
|
||||||
" -r, --res=RSRC.RES Load resources from RSRC.RES\n"
|
" -r, --res=RSRC.RES Load resources from RSRC.RES\n"
|
||||||
" --save-temps Do not delete the generated intermediate files\n"
|
" --save-temps Do not delete the generated intermediate files\n"
|
||||||
" --subsystem=SUBSYS Set the subsystem (one of native, windows, console)\n"
|
" --subsystem=SUBSYS Set the subsystem (one of native, windows, console)\n"
|
||||||
" --target=TARGET Specify target CPU and platform for cross-compiling\n"
|
|
||||||
" -u, --undefined=SYMBOL Add an undefined reference to SYMBOL when linking\n"
|
" -u, --undefined=SYMBOL Add an undefined reference to SYMBOL when linking\n"
|
||||||
" -v, --verbose Display the programs invoked\n"
|
" -v, --verbose Display the programs invoked\n"
|
||||||
" --version Print the version and exit\n"
|
" --version Print the version and exit\n"
|
||||||
|
@ -274,11 +274,10 @@ enum long_options_values
|
||||||
LONG_OPT_RELAY32,
|
LONG_OPT_RELAY32,
|
||||||
LONG_OPT_SAVE_TEMPS,
|
LONG_OPT_SAVE_TEMPS,
|
||||||
LONG_OPT_SUBSYSTEM,
|
LONG_OPT_SUBSYSTEM,
|
||||||
LONG_OPT_TARGET,
|
|
||||||
LONG_OPT_VERSION
|
LONG_OPT_VERSION
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char short_options[] = "C:D:E:F:H:I:K:L:M:N:d:e:f:hi:kl:m:o:r:u:vw";
|
static const char short_options[] = "C:D:E:F:H:I:K:L:M:N:b:d:e:f:hi:kl:m:o:r:u:vw";
|
||||||
|
|
||||||
static const struct option long_options[] =
|
static const struct option long_options[] =
|
||||||
{
|
{
|
||||||
|
@ -294,9 +293,9 @@ static const struct option long_options[] =
|
||||||
{ "relay32", 0, 0, LONG_OPT_RELAY32 },
|
{ "relay32", 0, 0, LONG_OPT_RELAY32 },
|
||||||
{ "save-temps", 0, 0, LONG_OPT_SAVE_TEMPS },
|
{ "save-temps", 0, 0, LONG_OPT_SAVE_TEMPS },
|
||||||
{ "subsystem", 1, 0, LONG_OPT_SUBSYSTEM },
|
{ "subsystem", 1, 0, LONG_OPT_SUBSYSTEM },
|
||||||
{ "target", 1, 0, LONG_OPT_TARGET },
|
|
||||||
{ "version", 0, 0, LONG_OPT_VERSION },
|
{ "version", 0, 0, LONG_OPT_VERSION },
|
||||||
/* aliases for short options */
|
/* aliases for short options */
|
||||||
|
{ "target", 1, 0, 'b' },
|
||||||
{ "delay-lib", 1, 0, 'd' },
|
{ "delay-lib", 1, 0, 'd' },
|
||||||
{ "export", 1, 0, 'E' },
|
{ "export", 1, 0, 'E' },
|
||||||
{ "entry", 1, 0, 'e' },
|
{ "entry", 1, 0, 'e' },
|
||||||
|
@ -372,6 +371,9 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
|
||||||
case 'N':
|
case 'N':
|
||||||
spec->dll_name = xstrdup( optarg );
|
spec->dll_name = xstrdup( optarg );
|
||||||
break;
|
break;
|
||||||
|
case 'b':
|
||||||
|
set_target( optarg );
|
||||||
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
add_delayed_import( optarg );
|
add_delayed_import( optarg );
|
||||||
break;
|
break;
|
||||||
|
@ -476,9 +478,6 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
|
||||||
case LONG_OPT_SUBSYSTEM:
|
case LONG_OPT_SUBSYSTEM:
|
||||||
set_subsystem( optarg, spec );
|
set_subsystem( optarg, spec );
|
||||||
break;
|
break;
|
||||||
case LONG_OPT_TARGET:
|
|
||||||
set_target( optarg );
|
|
||||||
break;
|
|
||||||
case LONG_OPT_VERSION:
|
case LONG_OPT_VERSION:
|
||||||
printf( "winebuild version " PACKAGE_VERSION "\n" );
|
printf( "winebuild version " PACKAGE_VERSION "\n" );
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
|
@ -59,6 +59,11 @@ Wine internal usage only, you should never need to use this option.
|
||||||
Specify the command to use to compile assembly files; the default is
|
Specify the command to use to compile assembly files; the default is
|
||||||
\fBas\fR.
|
\fBas\fR.
|
||||||
.TP
|
.TP
|
||||||
|
.BI \-b,\ --target= cpu-manufacturer[-kernel]-os
|
||||||
|
Specify the target CPU and platform on which the generated code will
|
||||||
|
be built. The target specification is in the standard autoconf format
|
||||||
|
as returned by config.sub.
|
||||||
|
.TP
|
||||||
.BI \-d,\ --delay-lib= name
|
.BI \-d,\ --delay-lib= name
|
||||||
Set the delayed import mode for the specified library, which must be
|
Set the delayed import mode for the specified library, which must be
|
||||||
one of the libraries imported with the \fB-l\fR option. Delayed mode
|
one of the libraries imported with the \fB-l\fR option. Delayed mode
|
||||||
|
@ -199,11 +204,6 @@ argument array to use Unicode strings. A graphical executable has a
|
||||||
Optionally a major and minor subsystem version can also be specified;
|
Optionally a major and minor subsystem version can also be specified;
|
||||||
the default subsystem version is 4.0.
|
the default subsystem version is 4.0.
|
||||||
.TP
|
.TP
|
||||||
.BI --target= cpu-manufacturer[-kernel]-os
|
|
||||||
Specify the target CPU and platform on which the generated code will
|
|
||||||
be built. The target specification is in the standard autoconf format
|
|
||||||
as returned by config.sub.
|
|
||||||
.TP
|
|
||||||
.BI \-u,\ --undefined= symbol
|
.BI \-u,\ --undefined= symbol
|
||||||
Add \fIsymbol\fR to the list of undefined symbols when invoking the
|
Add \fIsymbol\fR to the list of undefined symbols when invoking the
|
||||||
linker. This makes it possible to force a specific module of a static
|
linker. This makes it possible to force a specific module of a static
|
||||||
|
|
Loading…
Reference in New Issue