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
3e037992
Commit
3e037992
authored
Sep 03, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Sep 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward all arguments to gcc when we have no input files.
Kill the -V option, as it's not compatible with gcc. Fix silly bug when we are not given an output name.
parent
80e34dbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
13 deletions
+26
-13
winegcc.c
tools/winegcc.c
+26
-13
No files found.
tools/winegcc.c
View file @
3e037992
...
...
@@ -193,10 +193,6 @@ int main(int argc, char **argv)
case
'v'
:
/* verbose */
if
(
argv
[
i
][
2
]
==
0
)
verbose
=
1
;
break
;
case
'V'
:
printf
(
"winegcc v0.3
\n
"
);
exit
(
0
);
break
;
case
'W'
:
if
(
strncmp
(
"-Wl,"
,
argv
[
i
],
4
)
==
0
)
{
...
...
@@ -220,6 +216,12 @@ int main(int argc, char **argv)
if
(
linking
)
{
int
has_output_name
=
0
;
int
has_input_files
=
0
;
char
**
temp_argv
;
/* we need this to erase some of the parameters as we go along */
temp_argv
=
malloc
(
sizeof
(
char
*
)
*
argc
);
memcpy
(
temp_argv
,
argv
,
sizeof
(
char
*
)
*
argc
);
gcc_argv
[
i
++
]
=
"winewrap"
;
if
(
gui_app
)
gcc_argv
[
i
++
]
=
"-mgui"
;
...
...
@@ -234,17 +236,17 @@ int main(int argc, char **argv)
case
'L'
:
case
'o'
:
gcc_argv
[
i
++
]
=
argv
[
j
];
argv
[
j
]
=
0
;
temp_
argv
[
j
]
=
0
;
if
(
!
gcc_argv
[
i
-
1
][
2
]
&&
j
+
1
<
argc
)
{
gcc_argv
[
i
++
]
=
argv
[
++
j
];
argv
[
j
]
=
0
;
temp_
argv
[
j
]
=
0
;
}
has_output_name
=
1
;
break
;
case
'l'
:
gcc_argv
[
i
++
]
=
strcmp
(
argv
[
j
],
"-luuid"
)
?
argv
[
j
]
:
"-lwine_uuid"
;
argv
[
j
]
=
0
;
temp_
argv
[
j
]
=
0
;
break
;
default:
;
/* ignore the rest */
...
...
@@ -252,21 +254,32 @@ int main(int argc, char **argv)
}
else
{
gcc_argv
[
i
++
]
=
get_obj_file
(
argv
,
j
);
argv
[
j
]
=
0
;
gcc_argv
[
i
++
]
=
get_obj_file
(
temp_argv
,
j
);
temp_argv
[
j
]
=
0
;
has_input_files
=
1
;
}
}
if
(
has_input_files
)
{
/* Support the a.out default name, to appease configure */
if
(
!
has_output_name
)
{
gcc_argv
[
i
++
]
=
"-o"
;
gcc_argv
[
i
++
]
=
"a.out"
;
}
if
(
use_stdlib
&&
use_msvcrt
)
gcc_argv
[
i
++
]
=
"-lmsvcrt"
;
if
(
gui_app
)
gcc_argv
[
i
++
]
=
"-lcomdlg32"
;
gcc_argv
[
i
++
]
=
"-ladvapi32"
;
gcc_argv
[
i
++
]
=
"-lshell32"
;
}
else
{
/* if we have nothing to process, just forward stuff to gcc */
memcpy
(
gcc_argv
,
argv
,
sizeof
(
char
*
)
*
argc
);
gcc_argv
[
0
]
=
cpp
?
"g++"
:
"gcc"
;
i
=
argc
;
}
if
(
use_stdlib
&&
use_msvcrt
)
gcc_argv
[
i
++
]
=
"-lmsvcrt"
;
if
(
gui_app
)
gcc_argv
[
i
++
]
=
"-lcomdlg32"
;
gcc_argv
[
i
++
]
=
"-ladvapi32"
;
gcc_argv
[
i
++
]
=
"-lshell32"
;
}
else
{
...
...
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