From: Sean McGovern Date: Mon, 17 Oct 2011 19:44:03 +0000 (-0700) Subject: Fix linker test for -Bsymbolic X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=a0ce295b33a1ba87f732e661e22dba1a307e3405;p=x264.git Fix linker test for -Bsymbolic The Solaris linker only accepts -Bsymbolic for objects compiled in dynamic mode (i.e. shared objects), so pass -shared to gcc. Additionally, for x86_32 unresolved textrels cause a linker error so mark the .text section as 'impure'. --- diff --git a/configure b/configure index 711ed49c..2b228f2d 100755 --- a/configure +++ b/configure @@ -870,7 +870,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