Fix building when configured with --disable-shared.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Fri, 22 Jun 2012 04:23:56 +0000 (14:23 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Fri, 22 Jun 2012 04:23:56 +0000 (14:23 +1000)
commit8749dc278d7c48099cdbdb092be386ab855f78e3
treedfacf8f543caa9c2a6101cdd92a1e50a4b78e1f8
parentfeab11e9bdf2e95e590ab12cb4ec30232bdd1ed3
Fix building when configured with --disable-shared.

The problem was that the function safe_malloc_mul_2op_() was originally
defined as static inline in inclide/share/alloc.h but had to be moved
because GCC was refusing to inline it. Once moved however, static linking
would fail when building the flac executable because the function ended
up beiong linked twice.
include/share/alloc.h
src/libFLAC/include/private/memory.h
src/libFLAC/memory.c
src/libFLAC/metadata_iterators.c
src/libFLAC/metadata_object.c
src/libFLAC/stream_decoder.c
src/libFLAC/stream_encoder.c