Implemented bz2 as shared library.
commit0c2ea33c98c771ddde929220c7985ab461cb2300
authormazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 8 May 2012 23:20:32 +0000 (8 23:20 +0000)
committermazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 8 May 2012 23:20:32 +0000 (8 23:20 +0000)
tree2fd4245c2389f96b2c4eb3a1e8fd36cbaa1503a8
parent0dc5d2ce2c033045186920c3fc27a02dad72e61c
Implemented bz2 as shared library.

It's original libzip2 1.0.6 + some wrappers from Fredrik Wikstrom
(malloc.c, semaphores.c) from diskimage device + our usual *.conf file.
The order of functions in the *.conf file is the same as of that in
the SFD file of diskimage device's bz2.library.

It replaces libbz2.a + libbz2_nostdio.a. The shared library is build
with with NOSTDIO option. The header bzlib.h includes <proto/bz2.h>.
Linking with the new libbz2.a will silently open the new shared library.
Only problem I could find so far is that contrib/pack/bzip2
fails to build because of missing functions because of the NOSTDIO option.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44764 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
27 files changed:
compiler/include/bzlib.h [new file with mode: 0644]
compiler/include/libraries/bz2.h [new file with mode: 0644]
compiler/include/mmakefile
compiler/libbz2/mmakefile.src [deleted file]
workbench/c/Unpack/mmakefile.src
workbench/c/Unpack/unpack.c
workbench/libs/bz2/CHANGES [new file with mode: 0644]
workbench/libs/bz2/LICENSE [moved from compiler/libbz2/LEGAL with 94% similarity]
workbench/libs/bz2/blocksort.c [moved from compiler/libbz2/blocksort.c with 99% similarity]
workbench/libs/bz2/bz2.conf [new file with mode: 0644]
workbench/libs/bz2/bzip2.c [new file with mode: 0644]
workbench/libs/bz2/bzlib.c [moved from compiler/libbz2/bzlib.c with 99% similarity]
workbench/libs/bz2/bzlib.h [moved from compiler/libbz2/bzlib.h with 98% similarity]
workbench/libs/bz2/bzlib_private.h [moved from compiler/libbz2/bzlib_private.h with 95% similarity]
workbench/libs/bz2/compress.c [moved from compiler/libbz2/compress.c with 99% similarity]
workbench/libs/bz2/crctable.c [moved from compiler/libbz2/crctable.c with 97% similarity]
workbench/libs/bz2/decompress.c [moved from compiler/libbz2/decompress.c with 95% similarity]
workbench/libs/bz2/huffman.c [moved from compiler/libbz2/huffman.c with 98% similarity]
workbench/libs/bz2/init-aros.c [new file with mode: 0644]
workbench/libs/bz2/malloc.c [new file with mode: 0755]
workbench/libs/bz2/mmakefile.src [new file with mode: 0644]
workbench/libs/bz2/randtable.c [moved from compiler/libbz2/randtable.c with 97% similarity]
workbench/libs/bz2/semaphores.c [new file with mode: 0644]
workbench/libs/bz2/support.h [new file with mode: 0644]
workbench/libs/mmakefile
workbench/libs/muimaster/classes/mmakefile.src
workbench/libs/muimaster/mmakefile.src