[x264-devel] [PATCH] Fix build on Solaris 10 SPARC

Sean McGovern gseanmcg at gmail.com
Mon Oct 11 01:39:19 CEST 2010


On Sun, Oct 10, 2010 at 7:29 PM, Sean McGovern <gseanmcg at gmail.com> wrote:

> Submitted for approval, here is a patch that fixes build of x264 on SPARC
> Solaris 10.
>
> Some notes about the patch:
>
>    1. As before, this still assumes you have the GNU compiler & toolchain
>    (except Sun's assembler), I have successfully built gcc 4.5.1 myself for
>    SPARC and have been using that. I have not made any attempt to build with
>    Sun Studio, although I do have it installed.
>    2. On Solaris, neither /usr/xpg4/bin/grep nor /usr/bin/grep are capable
>    of handling binary files directly, so I have instead piped the conftest.o
>    through /usr/bin/strings, which also works on many other *ix platforms
>    including Linux and MacOS X.
>    3. SPARC is an acronym (http://www.sparc.org/standards/SPARCV9.pdf ,
>    section 0.1) -- all references have been changed to uppercase (there weren't
>    many).
>    4. sun4v's are 64-bit capable as well, so catch this in the configure
>    script.
>
> Additionally, although it's largely harmless, builders may want to add the
> LARGEFILE arguments to CFLAGS to squelch a warning. My build script
> (bash-syntax) does it thus:
>
> LFS_CFLAGS=$(getconf LFS_CFLAGS)
> CFLAGS="${CFLAGS} ${LFS_CFLAGS}"
>
> I would be more than happy to share my build script if anyone wants a copy.
>
> -- Sean McG
>

It helps a bunch when the patch is um... actually attached. Yeah.

-- Sean McG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20101010/76b65f95/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-build-on-SPARC-Solaris-10.patch
Type: application/octet-stream
Size: 2830 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20101010/76b65f95/attachment.obj>


More information about the x264-devel mailing list