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
9169b410
Commit
9169b410
authored
Mar 23, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a default .dll extension only when no extension is present.
parent
bfc60dfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
winegcc.c
tools/winegcc/winegcc.c
+10
-4
No files found.
tools/winegcc/winegcc.c
View file @
9169b410
...
...
@@ -348,7 +348,7 @@ static void build(struct options* opts)
strarray
*
spec_args
,
*
comp_args
,
*
link_args
;
char
*
output_file
;
const
char
*
spec_c_name
,
*
spec_o_name
;
const
char
*
output_name
,
*
spec_file
,
*
def_ext
;
const
char
*
output_name
,
*
spec_file
;
const
char
*
winebuild
=
getenv
(
"WINEBUILD"
);
int
generate_app_loader
=
1
;
int
j
;
...
...
@@ -378,11 +378,17 @@ static void build(struct options* opts)
generate_app_loader
=
0
;
/* normalize the filename a bit: strip .so, ensure it has proper ext */
def_ext
=
opts
->
shared
?
".dll"
:
".exe"
;
if
(
strendswith
(
output_file
,
".so"
))
output_file
[
strlen
(
output_file
)
-
3
]
=
0
;
if
(
!
strendswith
(
output_file
,
def_ext
))
output_file
=
strmake
(
"%s%s"
,
output_file
,
def_ext
);
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
);
/* get the filename by the path, if present */
if
((
output_name
=
strrchr
(
output_file
,
'/'
)))
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