Compiling tinyCDB 0.81 on OmniOS stable

tinyCDB is not available from OmniOS standard pkg repositories. I wanted to compile it for Sendmail to use as an alternative to Oracle DB. Even though OmniOS uses GCC as its default C compiler, the ld linker still comes from Open Solaris origin. That is why need to change linker flags that default to GNU ld.

Unpack the tar.gz package and in the newly created directory use the following command to build:

make prefix=/opt/site CC=gcc LDFLAGS_SONAME=-Wl,-h LDFLAGS_VSCRIPT=-Wl,-M sharedlib cdb-shared