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
f0daa7e9
Commit
f0daa7e9
authored
Feb 23, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Allow creating an executable with an arbitrary extension.
parent
a6b91685
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
winegcc.c
tools/winegcc/winegcc.c
+6
-14
No files found.
tools/winegcc/winegcc.c
View file @
f0daa7e9
...
...
@@ -552,21 +552,16 @@ static void build(struct options* opts)
}
/* generate app loader only for .exe */
if
(
opts
->
shared
||
strendswith
(
output_file
,
".
exe.
so"
))
if
(
opts
->
shared
||
strendswith
(
output_file
,
".so"
))
generate_app_loader
=
0
;
/* 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
(
opts
->
shared
)
{
if
((
output_name
=
strrchr
(
output_file
,
'/'
)))
output_name
++
;
else
output_name
=
output_file
;
if
(
!
strchr
(
output_name
,
'.'
))
output_file
=
strmake
(
"%s.dll"
,
output_file
);
}
else
if
(
!
strendswith
(
output_file
,
".exe"
))
output_file
=
strmake
(
"%s.exe"
,
output_file
);
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"
);
/* get the filename from the path */
if
((
output_name
=
strrchr
(
output_file
,
'/'
)))
output_name
++
;
...
...
@@ -798,10 +793,7 @@ static void build(struct options* opts)
/* create the loader script */
if
(
generate_app_loader
)
{
if
(
strendswith
(
output_file
,
".exe"
))
output_file
[
strlen
(
output_file
)
-
4
]
=
0
;
create_file
(
output_file
,
0755
,
app_loader_template
,
strmake
(
"%s.exe.so"
,
output_name
));
}
create_file
(
output_file
,
0755
,
app_loader_template
,
strmake
(
"%s.so"
,
output_name
));
}
...
...
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