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
b2c9c615
Commit
b2c9c615
authored
Jul 29, 2004
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use "LD" instead of "ld" in winebuild to be able to use a different ld
or ld options.
parent
bba76fca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
import.c
tools/winebuild/import.c
+5
-3
No files found.
tools/winebuild/import.c
View file @
b2c9c615
...
...
@@ -512,7 +512,7 @@ static int check_unused( const struct import* imp, const DLLSPEC *spec )
static
const
char
*
ldcombine_files
(
char
**
argv
)
{
int
i
,
len
=
0
;
char
*
cmd
;
char
*
cmd
,
*
ldcmd
;
int
fd
,
err
;
if
(
output_file_name
&&
output_file_name
[
0
])
...
...
@@ -527,9 +527,11 @@ static const char *ldcombine_files( char **argv )
close
(
fd
);
atexit
(
remove_ld_tmp_file
);
ldcmd
=
getenv
(
"LD"
);
if
(
!
ldcmd
)
ldcmd
=
"ld"
;
for
(
i
=
0
;
argv
[
i
];
i
++
)
len
+=
strlen
(
argv
[
i
])
+
1
;
cmd
=
xmalloc
(
len
+
strlen
(
ld_tmp_file
)
+
10
);
sprintf
(
cmd
,
"
ld -r -o %s"
,
ld_tmp_file
);
cmd
=
xmalloc
(
len
+
strlen
(
ld_tmp_file
)
+
8
+
strlen
(
ldcmd
)
);
sprintf
(
cmd
,
"
%s -r -o %s"
,
ldcmd
,
ld_tmp_file
);
for
(
i
=
0
;
argv
[
i
];
i
++
)
sprintf
(
cmd
+
strlen
(
cmd
),
" %s"
,
argv
[
i
]
);
err
=
system
(
cmd
);
if
(
err
)
fatal_error
(
"ld -r failed with status %d
\n
"
,
err
);
...
...
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