[x264-devel] [PATCH 2/2] Fix linker test for -Bsymbolic

Sean McGovern gseanmcg at gmail.com
Fri May 13 00:59:02 CEST 2011


On Mon, May 2, 2011 at 8:31 PM, Sean McGovern <gseanmcg at gmail.com> wrote:

> the Solaris linker only accepts -Bsymbolic for objects compiled
> in dynamic mode (ie. shared objects), so pass -shared to gcc.
>
> Additionally, for x86_32 unresolved textrels cause a linker error
> so mark the .text section as 'impure'.
> ---
>  configure |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 1dd255d..4855856 100755
> --- a/configure
> +++ b/configure
> @@ -817,7 +817,8 @@ if [ "$pic" = "yes" ] ; then
>     CFLAGS="$CFLAGS -fPIC"
>     ASFLAGS="$ASFLAGS -DPIC"
>     # resolve textrels in the x86 asm
> -    cc_check stdio.h -Wl,-Bsymbolic && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
> +    cc_check stdio.h "-shared -Wl,-Bsymbolic" && SOFLAGS="$SOFLAGS
> -Wl,-Bsymbolic"
> +    [ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS
> -mimpure-text"
>  fi
>
>  if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
> --
> 1.7.5
>
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>


Ping.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110512/212aa4be/attachment.html>


More information about the x264-devel mailing list