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
fec21ed6
Commit
fec21ed6
authored
Apr 27, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Re-enable the preloader on Android.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
60fb3d4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
33 deletions
+8
-33
configure
configure
+2
-28
configure.ac
configure.ac
+2
-5
main.c
loader/main.c
+4
-0
No files found.
configure
View file @
fec21ed6
...
...
@@ -8353,6 +8353,7 @@ fi
linux-android
*
)
DLLFLAGS
=
"
$DLLFLAGS
-fPIC"
LDEXECFLAGS
=
"-Wl,-pie"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fPIC -Wl,--export-dynamic"
>
&5
$as_echo_n
"checking whether the compiler supports -fPIC -Wl,--export-dynamic... "
>
&6
;
}
if
${
ac_cv_cflags__fPIC__Wl___export_dynamic
+
:
}
false
;
then
:
...
...
@@ -8376,7 +8377,7 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__fPIC__Wl___export_dynamic
"
>
&5
$as_echo
"
$ac_cv_cflags__fPIC__Wl___export_dynamic
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__fPIC__Wl___export_dynamic
"
=
xyes
;
then
:
LDEXECFLAGS
=
"-Wl,--export-dynamic"
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,--export-dynamic"
fi
as_ac_var
=
`
$as_echo
"ac_cv_cflags_-fPIC -Wl,--rpath,
\\
$ORIGIN
/../lib"
|
$as_tr_sh
`
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fPIC -Wl,--rpath,
\$
ORIGIN/../lib"
>
&5
...
...
@@ -8435,7 +8436,6 @@ if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
LDRPATH_LOCAL
=
"-Wl,-R,
\\\$\$
ORIGIN/
\$
(top_builddir)/libs/wine"
fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,--enable-new-dtags"
>
&5
$as_echo_n
"checking whether the compiler supports -Wl,--enable-new-dtags... "
>
&6
;
}
if
${
ac_cv_cflags__Wl___enable_new_dtags
+
:
}
false
;
then
:
...
...
@@ -8461,31 +8461,6 @@ $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
if
test
"x
$ac_cv_cflags__Wl___enable_new_dtags
"
=
xyes
;
then
:
LDRPATH_INSTALL
=
"
$LDRPATH_INSTALL
-Wl,--enable-new-dtags"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,-pie"
>
&5
$as_echo_n
"checking whether the compiler supports -Wl,-pie... "
>
&6
;
}
if
${
ac_cv_cflags__Wl__pie
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Wl,-pie"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_cflags__Wl__pie
=
yes
else
ac_cv_cflags__Wl__pie
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__Wl__pie
"
>
&5
$as_echo
"
$ac_cv_cflags__Wl__pie
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__Wl__pie
"
=
xyes
;
then
:
LDRPATH_INSTALL
=
"
$LDRPATH_INSTALL
-Wl,-pie"
fi
LIBWINE_SHAREDLIB
=
"libwine.so"
...
...
@@ -15258,7 +15233,6 @@ case $build_os in
esac
case
$host_os
in
linux-android
*
)
;;
linux
*
)
case
$host_cpu
in
*
i[3456789]86
*
|
x86_64
*
)
...
...
configure.ac
View file @
fec21ed6
...
...
@@ -847,19 +847,17 @@ case $host_os in
linux-android*)
DLLFLAGS="$DLLFLAGS -fPIC"
LDEXECFLAGS="-Wl,-pie"
WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
[LDEXECFLAGS="-Wl,--export-dynamic"])
[LDEXECFLAGS="
$LDEXECFLAGS
-Wl,--export-dynamic"])
WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],
[LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \${bindir} \${libdir}\`"
LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"],
[WINE_TRY_CFLAGS([-fPIC -Wl,-R,\$ORIGIN/../lib],
[LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \${bindir} \${libdir}\`"
LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"])])
WINE_TRY_CFLAGS([-Wl,--enable-new-dtags],
[LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"])
WINE_TRY_CFLAGS([-Wl,-pie],
[LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,-pie"])
AC_SUBST(LIBWINE_SHAREDLIB,"libwine.so")
AC_SUBST(LIBWINE_INSTALL_LIB,"libwine.so")
...
...
@@ -1967,7 +1965,6 @@ case $build_os in
esac
case $host_os in
linux-android*) ;;
linux*)
case $host_cpu in
*i[[3456789]]86*|x86_64*)
...
...
loader/main.c
View file @
fec21ed6
...
...
@@ -113,7 +113,11 @@ static void check_command_line( int argc, char *argv[] )
static
int
pre_exec
(
void
)
{
#if defined(__i386__) || defined(__x86_64__)
return
1
;
/* we have a preloader */
#else
return
0
;
/* no exec needed */
#endif
}
#elif defined(__linux__) && (defined(__i386__) || defined(__arm__))
...
...
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