winebuild: Add a -m16 option to specify a 16-bit build.
This commit is contained in:
parent
d99b6d3934
commit
7f6831aa9a
|
@ -251,7 +251,7 @@ static const char usage_str[] =
|
||||||
" --ld-cmd=LD Command to use for linking (default: ld)\n"
|
" --ld-cmd=LD Command to use for linking (default: ld)\n"
|
||||||
" -l, --library=LIB Import the specified library\n"
|
" -l, --library=LIB Import the specified library\n"
|
||||||
" -L, --library-path=DIR Look for imports libraries in DIR\n"
|
" -L, --library-path=DIR Look for imports libraries in DIR\n"
|
||||||
" -m32, -m64 Force building 32-bit resp. 64-bit code\n"
|
" -m16, -m32, -m64 Force building 16-bit, 32-bit resp. 64-bit code\n"
|
||||||
" -M, --main-module=MODULE Set the name of the main module for a Win16 dll\n"
|
" -M, --main-module=MODULE Set the name of the main module for a Win16 dll\n"
|
||||||
" --nm-cmd=NM Command to use to get undefined symbols (default: nm)\n"
|
" --nm-cmd=NM Command to use to get undefined symbols (default: nm)\n"
|
||||||
" --nxcompat=y|n Set the NX compatibility flag (default: yes)\n"
|
" --nxcompat=y|n Set the NX compatibility flag (default: yes)\n"
|
||||||
|
@ -382,9 +382,10 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
|
||||||
lib_path[nb_lib_paths++] = xstrdup( optarg );
|
lib_path[nb_lib_paths++] = xstrdup( optarg );
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
if (strcmp( optarg, "32" ) && strcmp( optarg, "64" ))
|
if (strcmp( optarg, "16" ) && strcmp( optarg, "32" ) && strcmp( optarg, "64" ))
|
||||||
fatal_error( "Invalid -m option '%s', expected -m32 or -m64\n", optarg );
|
fatal_error( "Invalid -m option '%s', expected -m16, -m32 or -m64\n", optarg );
|
||||||
if (!strcmp( optarg, "32" )) force_pointer_size = 4;
|
if (!strcmp( optarg, "16" )) spec->type = SPEC_WIN16;
|
||||||
|
else if (!strcmp( optarg, "32" )) force_pointer_size = 4;
|
||||||
else force_pointer_size = 8;
|
else force_pointer_size = 8;
|
||||||
break;
|
break;
|
||||||
case 'M':
|
case 'M':
|
||||||
|
|
|
@ -157,8 +157,8 @@ Import the specified library, looking for a corresponding
|
||||||
\fIlibname.def\fR file in the directories specified with the \fB-L\fR
|
\fIlibname.def\fR file in the directories specified with the \fB-L\fR
|
||||||
option.
|
option.
|
||||||
.TP
|
.TP
|
||||||
.B \-m32, -m64
|
.B \-m16, -m32, -m64
|
||||||
Generate 32-bit, respectively 64-bit code.
|
Generate 16-bit, 32-bit, respectively 64-bit code.
|
||||||
.TP
|
.TP
|
||||||
.BI \-M,\ --main-module= module
|
.BI \-M,\ --main-module= module
|
||||||
When building a 16-bit dll, set the name of its 32-bit counterpart to
|
When building a 16-bit dll, set the name of its 32-bit counterpart to
|
||||||
|
@ -211,10 +211,7 @@ for a command line executable,
|
||||||
for a graphical executable,
|
for a graphical executable,
|
||||||
.br
|
.br
|
||||||
.B native
|
.B native
|
||||||
for a native-mode dll,
|
for a native-mode dll.
|
||||||
.br
|
|
||||||
.B win16
|
|
||||||
for a 16-bit module.
|
|
||||||
.br
|
.br
|
||||||
The entry point of a command line executable is a normal C \fBmain\fR
|
The entry point of a command line executable is a normal C \fBmain\fR
|
||||||
function. A \fBwmain\fR function can be used instead if you need the
|
function. A \fBwmain\fR function can be used instead if you need the
|
||||||
|
|
Loading…
Reference in New Issue