Mercurial > mplayer.hg
changeset 35003:1ef3902e9cc4
Do not try to use PIE with --enable-static.
At least on x86_32 -static -pie silently creates a broken binary.
author | reimar |
---|---|
date | Wed, 15 Aug 2012 19:51:58 +0000 |
parents | 64d72a128ea8 |
children | 9a8cd462b5da |
files | configure |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Aug 15 17:46:38 2012 +0000 +++ b/configure Wed Aug 15 19:51:58 2012 +0000 @@ -2653,7 +2653,10 @@ # try to create a relocatable binary by default echocheck "relocatable binary" if test $relocatable = "auto" ; then - if x86_32 && cflag_check -pie ; then + if test -n "$ld_static" ; then + relocatable=no + res_comment="PIE + static assumed to be broken" + elif x86_32 && cflag_check -pie ; then extra_ldflags="$extra_ldflags -pie" relocatable=yes res_comment="non-PIC"