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
120abaed
Commit
120abaed
authored
Sep 15, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Sep 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Teach winegcc to masquerade as cpp.
parent
e66069d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
Makefile.in
tools/winegcc/Makefile.in
+3
-1
winegcc.c
tools/winegcc/winegcc.c
+10
-5
No files found.
tools/winegcc/Makefile.in
View file @
120abaed
...
...
@@ -29,8 +29,10 @@ install:: $(PROGRAMS)
$(INSTALL_PROGRAM)
winegcc
$(bindir)
/winegcc
$(INSTALL_PROGRAM)
winewrap
$(bindir)
/winewrap
cd
$(bindir)
&&
$(RM)
wineg++
&&
$(LN_S)
winegcc wineg++
cd
$(bindir)
&&
$(RM)
winecpp
&&
$(LN_S)
winegcc winecpp
uninstall
::
$(RM)
$(bindir)
/winegcc
$(bindir)
/wineg++
$(bindir)
/winewrap
$(RM)
$(bindir)
/winegcc
$(bindir)
/wineg++
\
$(bindir)
/winecpp
$(bindir)
/winewrap
### Dependencies:
tools/winegcc/winegcc.c
View file @
120abaed
...
...
@@ -102,13 +102,14 @@ int main(int argc, char **argv)
{
strarray
*
gcc_argv
;
int
i
,
j
;
int
linking
=
1
,
cpp
=
0
,
use_static_linking
=
0
;
int
linking
=
1
,
cpp
=
0
,
preprocessor
=
0
,
use_static_linking
=
0
;
int
use_stdinc
=
1
,
use_stdlib
=
1
,
use_msvcrt
=
0
,
gui_app
=
0
;
tmp_files
=
strarray_alloc
();
atexit
(
clean_temp_files
);
if
(
strendswith
(
argv
[
0
],
"++"
))
cpp
=
1
;
if
(
strendswith
(
argv
[
0
],
"winecpp"
))
preprocessor
=
1
;
else
if
(
strendswith
(
argv
[
0
],
"++"
))
cpp
=
1
;
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
...
...
@@ -161,6 +162,7 @@ int main(int argc, char **argv)
}
}
if
(
preprocessor
)
linking
=
0
;
if
(
use_static_linking
)
error
(
"Static linking is not supported."
);
gcc_argv
=
strarray_alloc
();
...
...
@@ -241,10 +243,13 @@ int main(int argc, char **argv)
}
else
{
strarray_add
(
gcc_argv
,
cpp
?
"g++"
:
"gcc"
);
strarray_add
(
gcc_argv
,
preprocessor
?
"cpp"
:
cpp
?
"g++"
:
"gcc"
);
strarray_add
(
gcc_argv
,
"-fshort-wchar"
);
strarray_add
(
gcc_argv
,
"-fPIC"
);
if
(
!
preprocessor
)
{
strarray_add
(
gcc_argv
,
"-fshort-wchar"
);
strarray_add
(
gcc_argv
,
"-fPIC"
);
}
if
(
use_stdinc
)
{
if
(
use_msvcrt
)
...
...
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