Ralph Giles wrote:

> On 13-03-02 3:22 PM, Erik de Castro Lopo wrote:
> 
> >     http://downloads.xiph.org/releases/flac/beta/
> 
> On Mac 10.7.5 Apple clang 4.2, 'make check' fails because BSD and GNU
> coreutils have incompatible format options for 'stat'.
> 
> If I change test/test_compression.sh to use:
> 
>   size=`stat -f "%z" ${fname}`
> 
> The self tests complete without error. Of course that won't work on a
> GNU system. Stack overflow suggests 'wc -c' as a portable version:
> 
>   size=`wc -c <${fname}`
> 
> Which does work on the Mac.

Thanks Ralph, I'll switch to wc.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to