tinycdb: install shared lib and pic archive
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 15 Dec 2019 09:44:05 +0000 (10:44 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 15 Dec 2019 09:44:08 +0000 (10:44 +0100)
commit6c4336eb195de570903627b6738d63910b0fa834
tree0292af0906abc9cd293b41a5ff15ffb17dc86eb9
parenta99af740ea5cbbb8677899f61d6275f95fa2d8a4
tinycdb: install shared lib and pic archive

dnsdist picks up cdb.h but can't link in the static archive.

/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/lib/gcc/mips-openwrt-linux-musl/8.3.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libcdb.a(cdb_init.o): relocation R_MIPS_26 against `fstat' can not be used when making a shared object; recompile with -fPIC

This commit extends the tinycdb Makefile to build and install as well
the shared library as well as the pic archive. dnsdist will then pick
the shared library.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/tinycdb/Makefile