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
bfac60bf
Commit
bfac60bf
authored
Jun 22, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do direct Linux system calls in the preloader to avoid trouble with
some broken static libcs.
parent
fc51760f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
161 additions
and
75 deletions
+161
-75
configure
configure
+0
-50
configure.ac
configure.ac
+0
-1
Makefile.in
loader/Makefile.in
+1
-1
preloader.c
loader/preloader.c
+160
-23
No files found.
configure
View file @
bfac60bf
...
...
@@ -14607,56 +14607,6 @@ esac
case
$host_os
in
linux
*
)
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-static"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
:
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
{
{
echo
"
$as_me
:
$LINENO
: error: You need to install the static version of glibc to build Wine."
>
&5
echo
"
$as_me
: error: You need to install the static version of glibc to build Wine."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
WINE_BINARIES
=
"wine-glibc wine-kthread wine-pthread wine-preloader"
MAIN_BINARY
=
"wine-glibc"
...
...
configure.ac
View file @
bfac60bf
...
...
@@ -989,7 +989,6 @@ esac
case $host_os in
linux*)
WINE_TRY_CFLAGS([-static],,AC_MSG_ERROR([You need to install the static version of glibc to build Wine.]))
AC_SUBST(WINE_BINARIES,"wine-glibc wine-kthread wine-pthread wine-preloader")
AC_SUBST(MAIN_BINARY,"wine-glibc")
;;
...
...
loader/Makefile.in
View file @
bfac60bf
...
...
@@ -28,7 +28,7 @@ wine-glibc: glibc.o Makefile.in
$(CC)
-o
$@
glibc.o
$(LIBWINE)
$(LIBPORT)
$(LIBPTHREAD)
$(EXTRALIBS)
$(LDFLAGS)
wine-preloader
:
preloader.o Makefile.in
$(CC)
-o
$@
-static
-nostartfiles
-Wl
,-Ttext
=
0x78000000 preloader.o
$(LIBPORT)
$(LDFLAGS)
$(CC)
-o
$@
-static
-nostartfiles
-
nodefaultlibs
-
Wl
,-Ttext
=
0x78000000 preloader.o
$(LIBPORT)
$(LDFLAGS)
wine-kthread
:
$(KTHREAD_OBJS) Makefile.in
$(CC)
-o
$@
$(LDEXECFLAGS)
$(KTHREAD_OBJS)
$(LIBWINE)
$(LIBPORT)
$(EXTRALIBS)
$(LDFLAGS)
...
...
loader/preloader.c
View file @
bfac60bf
This diff is collapsed.
Click to expand it.
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