The GDBM package contains the GNU Database Manager. It is a library of database functions that uses extensible hashing and works like the standard UNIX dbm. The library provides primitives for storing key/data pairs, searching and retrieving the data by its key and deleting a key along with its data.
Prepare GDBM for compilation:
./configure --prefix=/usr \ --disable-static \ --enable-libgdbm-compat
The meaning of the configure option:
--enable-libgdbm-compat
This switch enables building the libgdbm compatibility library. Some packages outside of LFS may require the older DBM routines it provides.
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install
Clean previous build:
make distclean
Prepare GDBM for compilation:
CC="gcc -m32" CXX="g++ -m32" ./configure \ --host=i686-pc-linux-gnu \ --prefix=/usr \ --libdir=/usr/lib32 \ --disable-static \ --enable-libgdbm-compat
Compile the package:
make
Install the package:
make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/lib32/* /usr/lib32/ rm -rf DESTDIR