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

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


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20101010/0bc0f924/attachment.htm>


More information about the x264-devel mailing list