Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
469058ac
Commit
469058ac
authored
May 14, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Allow the output file to end in .so.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
83d00d32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
winegcc.c
tools/winegcc/winegcc.c
+2
-2
No files found.
tools/winegcc/winegcc.c
View file @
469058ac
...
...
@@ -1107,12 +1107,12 @@ static void build(struct options* opts)
if
(
strendswith
(
output_file
,
".fake"
))
fake_module
=
1
;
/* normalize the filename a bit: strip .so, ensure it has proper ext */
if
(
strendswith
(
output_file
,
".so"
))
output_file
[
strlen
(
output_file
)
-
3
]
=
0
;
if
((
output_name
=
strrchr
(
output_file
,
'/'
)))
output_name
++
;
else
output_name
=
output_file
;
if
(
!
strchr
(
output_name
,
'.'
))
output_file
=
strmake
(
"%s.%s"
,
output_file
,
opts
->
shared
?
"dll"
:
"exe"
);
else
if
(
strendswith
(
output_file
,
".so"
))
output_file
[
strlen
(
output_file
)
-
3
]
=
0
;
output_path
=
is_pe
?
output_file
:
strmake
(
"%s.so"
,
output_file
);
/* get the filename from the path */
...
...
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