[Cin] lame-3.100 patches - only one tested

Andrew Randrianasulu randrianasulu at gmail.com
Fri Mar 27 04:39:14 CET 2020


Well, this is mostly for information on what i tried.

One patch is applicable and doesn't result in compilation failure
lame-3.100-fastcrc.diff

# lame patches
cp $CWD/lame-3.100-fastcrc.diff thirdparty/src/lame-3.100.patch1
#cp $CWD/lame-3.100-sse-20171014.diff thirdparty/src/lame-3.100.patch2

git apply -v $CWD/lame-make-opt.diff

but second patch actually require -msse2 on x86-32, so I disabled it for now.
You can tweak it a bit more, for example leaving only x86_64 part in those statements:

+#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))

but this is just some kind of distraction.

in opt patch I changed defaults to more aggressive:

+lame.cfg_vars?= CFLAGS+=" -O3 -DUSE_FAST_LOG=1 -ffast-math"
+lame.cfg_params?=--enable-shared=no --enable-nasm --enable-expopt=norm

from this page:
https://shenki.github.io/LameMP3-on-Power9/

actually I saw described there configure bug, but just added CFLAGS
instead of patching autoconf stuff.

Oh, this libpng strangeness makes me unhappy :/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lame-3.100-fastcrc.diff
Type: text/x-diff
Size: 24195 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20200327/bd1db8ee/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lame-3.100-sse-20171014.diff
Type: text/x-diff
Size: 65301 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20200327/bd1db8ee/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lame-make-opt.diff
Type: text/x-diff
Size: 830 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20200327/bd1db8ee/attachment-0005.bin>


More information about the Cin mailing list