Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

ac-os: don't use musl-gcc when shared libs are glibc-linked

On Ubuntu, libasound/libdrm/etc. link against glibc. Using musl-gcc
to build ac-native creates a musl binary that can't load glibc shared
libs at runtime, causing kernel panic (blinking caps lock). Now checks
if libasound links against libc.so.6 (glibc) and falls back to gcc.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+4 -1
+4 -1
fedac/native/ac-os
··· 38 38 cd "${SCRIPT_DIR}" 39 39 CC_USE="${CC:-}" 40 40 if [ -z "${CC_USE}" ]; then 41 + # Only use musl-gcc if shared libs are also musl-linked (Fedora). 42 + # On Ubuntu/Debian, shared libs are glibc — mixing musl binary + glibc libs crashes. 41 43 if command -v musl-gcc &>/dev/null \ 42 - && echo '#include <linux/input.h>' | musl-gcc -E -x c - &>/dev/null 2>&1; then 44 + && echo '#include <linux/input.h>' | musl-gcc -E -x c - &>/dev/null 2>&1 \ 45 + && ! ldd /usr/lib/*/libasound.so.2 2>/dev/null | grep -q 'libc.so.6'; then 43 46 CC_USE=musl-gcc 44 47 else 45 48 CC_USE=gcc