The DHCPCD package provides a DHCP Client for network configuration.
This package requires compiler variables to be set for the target in the environment.
export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"
If you wish to configure your network to connect to a DHCP server, you will first need to install a DHCP client. CLFS uses the DHCPCD package for this.
Prepare DHCPCD for compilation:
make PREFIX=/usr BINDIR=/sbin SYSCONFDIR=/etc \
DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
This package does not come with a test suite.
Install the package:
make PREFIX=/usr BINDIR=/sbin SYSCONFDIR=/etc \
DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd \
DESTDIR=${CLFS} install