Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
3d8a91e1
Commit
3d8a91e1
authored
9 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
configure: Build binaries as PIE on Android.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a30feab7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+10
-15
10 additions, 15 deletions
configure
configure.ac
+2
-7
2 additions, 7 deletions
configure.ac
with
12 additions
and
22 deletions
configure
+
10
−
15
View file @
3d8a91e1
...
...
@@ -8350,36 +8350,31 @@ $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
case $host_cpu in
*i[3456789]86* | x86_64)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
{ $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,-
-section-start,.interp=0x7bf00400
"
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__
_section_start__interp_0x7bf00400
=yes
ac_cv_cflags__Wl__
pie
=yes
else
ac_cv_cflags__Wl__
_section_start__interp_0x7bf00400
=no
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__
_section_start__interp_0x7bf00400
" >&5
$as_echo "$ac_cv_cflags__Wl__
_section_start__interp_0x7bf00400
" >&6; }
if test "x$ac_cv_cflags__Wl__
_section_start__interp_0x7bf00400
" = xyes; then :
LD
EXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400
"
{ $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 :
LD
RPATH_INSTALL="$LDRPATH_INSTALL -Wl,-pie
"
fi
;;
esac
LIBWINE_SHAREDLIB="libwine.so"
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
2
−
7
View file @
3d8a91e1
...
...
@@ -860,13 +860,8 @@ case $host_os in
WINE_TRY_CFLAGS([-Wl,--enable-new-dtags],
[LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"])
case $host_cpu in
*i[[3456789]]86* | x86_64)
WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],
[LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"])
;;
esac
WINE_TRY_CFLAGS([-Wl,-pie],
[LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,-pie"])
AC_SUBST(LIBWINE_SHAREDLIB,"libwine.so")
AC_SUBST(LIBWINE_INSTALL_LIB,"libwine.so")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment