87.5. libtommath-1.3.0
Multiple-precision integers — tcl bundles a renamed copy and yosys needs the real one
1.3.0-1 · Unlicense · 0.1 SBU · 583.4 KiB, 7 files · 41_system, 259 of 1047 · ports/core/devlibs/libtommath
Homepage: https://www.libtom.net/LibTomMath/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/devlibs.txt:
tcl vendors libtommath and RENAMES every symbol in it; yosys calls the plain names against tcl's public headers, so the external copy is what makes it compile at all — see the tcl recipe.
Depends on: pkgconf.
Required by (3): convertlit, tcl, yosys.
Sources: libtommath-1.3.0.tar.xz (627.7 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libtommath'
build.sh:
export CFLAGS="${CFLAGS/-O2/-O3}"
make -f makefile.shared PREFIX=/usr LIBPATH=/usr/lib
make -f makefile.shared PREFIX=/usr LIBPATH=/usr/lib DESTDIR=$PKG install
Libraries: libtommath.a, libtommath.so.
Directories: /usr/share/licenses/libtommath.