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

Sean McGovern gseanmcg at gmail.com
Sat Nov 20 17:02:59 CET 2010


Oh, ugh. Was it anything modern where this failed? Please don't tell me this
is on Irix or Ultrix or something equally obscure.

Jason, would you prefer this part of my patch be reverted until we can find
something that works universally?

2010/11/20 Måns Rullgård <mans at mansr.com>

> Sean McGovern <gseanmcg at gmail.com> writes:
>
> >  echo "int i = 0x42494745; double f = 0x1.0656e6469616ep+102;" >
> conftest.c
> >  $CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test
> failed"
> > -if grep -q BIGE conftest.o && grep -q FPendian conftest.o ; then
> > +if (strings -a conftest.o | grep -q BIGE) && (strings -a conftest.o |
> grep -q FPendian) ; then
> >      define WORDS_BIGENDIAN
> > -elif !(grep -q EGIB conftest.o && grep -q naidnePF conftest.o) ; then
> > +elif !(strings -a conftest.o | grep -q EGIB && strings -a conftest.o |
> grep -q naidnePF) ; then
> >      die "endian test failed"
> >  fi
>
> I remember encountering some system where this didn't work.
> Unfortunately, I don't remember which one.  It has to do with this
> part of the 'strings' spec:
>
>  A printable string is any sequence of four (by default) or more
>  printable characters terminated by a <newline> or NUL character.
>
> You can't be certain that the test word will be followed by a zero.
>
> --
> Måns Rullgård
> mans at mansr.com
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20101120/c3a0d911/attachment.html>


More information about the x264-devel mailing list