<br><br><div class="gmail_quote">On Mon, May 2, 2011 at 8:31 PM, Sean McGovern <span dir="ltr"><<a href="mailto:gseanmcg@gmail.com">gseanmcg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
the Solaris linker only accepts -Bsymbolic for objects compiled<br>
in dynamic mode (ie. shared objects), so pass -shared to gcc.<br>
<br>
Additionally, for x86_32 unresolved textrels cause a linker error<br>
so mark the .text section as 'impure'.<br>
---<br>
configure | 3 ++-<br>
1 files changed, 2 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/configure b/configure<br>
index 1dd255d..4855856 100755<br>
--- a/configure<br>
+++ b/configure<br>
@@ -817,7 +817,8 @@ if [ "$pic" = "yes" ] ; then<br>
CFLAGS="$CFLAGS -fPIC"<br>
ASFLAGS="$ASFLAGS -DPIC"<br>
# resolve textrels in the x86 asm<br>
- cc_check stdio.h -Wl,-Bsymbolic && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"<br>
+ cc_check stdio.h "-shared -Wl,-Bsymbolic" && SOFLAGS="$SOFLAGS -Wl,-Bsymbolic"<br>
+ [ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text"<br>
fi<br>
<br>
if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then<br>
<font color="#888888">--<br>
1.7.5<br>
<br>
_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
</font></blockquote></div><br><div><br></div><div>Ping.</div>