Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
034a7f88
Commit
034a7f88
authored
Jan 14, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Add -b as a short option for --target for gcc compatibility.
parent
022ae89e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
main.c
tools/winebuild/main.c
+6
-7
winebuild.man.in
tools/winebuild/winebuild.man.in
+5
-5
No files found.
tools/winebuild/main.c
View file @
034a7f88
...
...
@@ -223,6 +223,7 @@ static const char usage_str[] =
"Usage: winebuild [OPTIONS] [FILES]
\n\n
"
"Options:
\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 SYM Ignored for C flags compatibility
\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
"
" --save-temps Do not delete the generated intermediate files
\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
"
" -v, --verbose Display the programs invoked
\n
"
" --version Print the version and exit
\n
"
...
...
@@ -274,11 +274,10 @@ enum long_options_values
LONG_OPT_RELAY32
,
LONG_OPT_SAVE_TEMPS
,
LONG_OPT_SUBSYSTEM
,
LONG_OPT_TARGET
,
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
[]
=
{
...
...
@@ -294,9 +293,9 @@ static const struct option long_options[] =
{
"relay32"
,
0
,
0
,
LONG_OPT_RELAY32
},
{
"save-temps"
,
0
,
0
,
LONG_OPT_SAVE_TEMPS
},
{
"subsystem"
,
1
,
0
,
LONG_OPT_SUBSYSTEM
},
{
"target"
,
1
,
0
,
LONG_OPT_TARGET
},
{
"version"
,
0
,
0
,
LONG_OPT_VERSION
},
/* aliases for short options */
{
"target"
,
1
,
0
,
'b'
},
{
"delay-lib"
,
1
,
0
,
'd'
},
{
"export"
,
1
,
0
,
'E'
},
{
"entry"
,
1
,
0
,
'e'
},
...
...
@@ -372,6 +371,9 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
case
'N'
:
spec
->
dll_name
=
xstrdup
(
optarg
);
break
;
case
'b'
:
set_target
(
optarg
);
break
;
case
'd'
:
add_delayed_import
(
optarg
);
break
;
...
...
@@ -476,9 +478,6 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
case
LONG_OPT_SUBSYSTEM
:
set_subsystem
(
optarg
,
spec
);
break
;
case
LONG_OPT_TARGET
:
set_target
(
optarg
);
break
;
case
LONG_OPT_VERSION
:
printf
(
"winebuild version "
PACKAGE_VERSION
"
\n
"
);
exit
(
0
);
...
...
tools/winebuild/winebuild.man.in
View file @
034a7f88
...
...
@@ -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
\fBas\fR.
.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
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
...
...
@@ -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;
the default subsystem version is 4.0.
.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
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment