[Buildroot] [PATCH 1/1] twolame: fix static linking with libmagic

Peter Korsgaard peter at korsgaard.com
Thu Nov 8 21:24:44 UTC 2018

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:

 > libmagic (from file package) already provides the buffer_init function
 > so to avoid a build failure for applications wanting to statically link
 > with twolame and libmagic (for example sox), rename buffer_init into
 > bitbuffer_init (also rename buffer_deinit into bitbuffer_deinit and
 > buffer_sstell into bitbuffer_sstell for consistency)

 > Fixes:
 >  - http://autobuild.buildroot.org/results/b3fc62e7f372fe595966e84091c11ccdb4cfa77c

Grr, libraries should use unique prefixes for public symbols.

A conflict can still happen with bitbuffer_, but OK - It is less likely
to happen.

Committed, thanks.

Bye, Peter Korsgaard

More information about the buildroot mailing list