6.4. libedit 20251016-3.1

libedit provides BSD editline functionality used by programs that need interactive line editing and history behavior.

Input assumption: libedit-20251016-3.1.tar.gz is already present in LBI_SOURCES from the chapter 4 source staging step.

Licenses:

Dependencies:

libedit is a BSD editline and history library. we need it to provide line-editing functionality for interactive target-side programs in later chapters.

Extract and Enter the Source Tree

cd "$LBI_SOURCES"
tar -xf libedit-20251016-3.1.tar.gz
cd libedit-20251016-3.1

Configure libedit

CC="$LBI_ROOT/system/tools/bin/$LBI_TARGET-clang" \
CPPFLAGS="-D__STDC_ISO_10646__=201706L" \
lbi_configure \
    --host="$LBI_TARGET"

Build libedit

make $LWI_MAKE_FLAGS

Install libedit

make install DESTDIR="$LBI_ROOT"

Command Explanations