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
a16d7259
Commit
a16d7259
authored
Jan 09, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jan 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail if we can't load some libs in the wrapper.
No need to link the wrapper with all libs, we know what we need.
parent
90e075c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
winewrap.c
tools/winegcc/winewrap.c
+5
-6
No files found.
tools/winegcc/winewrap.c
View file @
a16d7259
...
@@ -187,7 +187,8 @@ static const char *wrapper_code =
...
@@ -187,7 +187,8 @@ static const char *wrapper_code =
" }
\n
"
" }
\n
"
"
\n
"
"
\n
"
" for (i = 0; i < sizeof(libs)/sizeof(libs[0]); i++) {
\n
"
" for (i = 0; i < sizeof(libs)/sizeof(libs[0]); i++) {
\n
"
" if (!LoadLibrary(libs[i])) error(
\"
Could not load %%s (%%d)
\"
, libs[i], GetLastError());
\n
"
" if (!LoadLibrary(libs[i]))
\n
"
" fprintf(stderr,
\"
Warning: Could not load %%s (%%d)
\\
n
\"
, libs[i], GetLastError());
\n
"
" }
\n
"
" }
\n
"
"
\n
"
"
\n
"
" /* Load the application's module */
\n
"
" /* Load the application's module */
\n
"
...
@@ -395,8 +396,7 @@ static void create_the_wrapper(char* base_file, char* base_name, char* app_name,
...
@@ -395,8 +396,7 @@ static void create_the_wrapper(char* base_file, char* base_name, char* app_name,
strarray_add
(
wspec_args
,
strmake
(
"%s.exe"
,
base_name
));
strarray_add
(
wspec_args
,
strmake
(
"%s.exe"
,
base_name
));
strarray_add
(
wspec_args
,
gui_mode
?
"-mgui"
:
"-mcui"
);
strarray_add
(
wspec_args
,
gui_mode
?
"-mgui"
:
"-mcui"
);
strarray_add
(
wspec_args
,
wrap_o_name
);
strarray_add
(
wspec_args
,
wrap_o_name
);
for
(
i
=
0
;
i
<
llib_paths
->
size
;
i
++
)
strarray_add
(
wspec_args
,
"-L"
DLLDIR
);
strarray_add
(
wspec_args
,
llib_paths
->
base
[
i
]);
strarray_add
(
wspec_args
,
"-lkernel32"
);
strarray_add
(
wspec_args
,
"-lkernel32"
);
strarray_add
(
wspec_args
,
NULL
);
strarray_add
(
wspec_args
,
NULL
);
...
@@ -422,13 +422,12 @@ static void create_the_wrapper(char* base_file, char* base_name, char* app_name,
...
@@ -422,13 +422,12 @@ static void create_the_wrapper(char* base_file, char* base_name, char* app_name,
strarray_add
(
wlink_args
,
"gcc"
);
strarray_add
(
wlink_args
,
"gcc"
);
strarray_add
(
wlink_args
,
"-shared"
);
strarray_add
(
wlink_args
,
"-shared"
);
strarray_add
(
wlink_args
,
"-Wl,-Bsymbolic,-z,defs"
);
strarray_add
(
wlink_args
,
"-Wl,-Bsymbolic,-z,defs"
);
strarray_add
(
wlink_args
,
"-lwine"
);
strarray_add
(
wlink_args
,
"-o"
);
strarray_add
(
wlink_args
,
"-o"
);
strarray_add
(
wlink_args
,
strmake
(
"%s.exe.so"
,
base_file
));
strarray_add
(
wlink_args
,
strmake
(
"%s.exe.so"
,
base_file
));
strarray_add
(
wlink_args
,
"-L"
LIBDIR
);
strarray_add
(
wlink_args
,
"-lwine"
);
strarray_add
(
wlink_args
,
wspec_o_name
);
strarray_add
(
wlink_args
,
wspec_o_name
);
strarray_add
(
wlink_args
,
wrap_o_name
);
strarray_add
(
wlink_args
,
wrap_o_name
);
for
(
i
=
0
;
i
<
llib_paths
->
size
;
i
++
)
strarray_add
(
wlink_args
,
llib_paths
->
base
[
i
]);
strarray_add
(
wlink_args
,
NULL
);
strarray_add
(
wlink_args
,
NULL
);
spawn
(
wlink_args
);
spawn
(
wlink_args
);
...
...
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