fix: add Alpine/musl shims for libtcl and libnsl

Verific tclmain links -ltcl and -lnsl. Alpine tcl-dev provides
libtcl8.6.so (no libtcl.so symlink), and musl has no libnsl.
Create symlink and stub shared lib to satisfy the linker.

Made-with: Cursor
This commit is contained in:
Akash Levy 2026-02-28 12:20:32 -08:00
parent 0b0c19b271
commit e7e15b6120
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ jobs:
git config --global --add safe.directory /src
git submodule foreach --recursive git config --global --add safe.directory \$toplevel/\$sm_path
# Alpine/musl compatibility shims for Verific tclmain link step
ln -sf /usr/lib/libtcl8.6.so /usr/lib/libtcl.so
echo "void dummy_nsl(void){}" | gcc -shared -o /usr/lib/libnsl.so -x c -
# Build Verific TCL main (needed before Yosys)
cd /src/verific/tclmain
make