Building MariaDB with musl: /usr/bin/ld cannot find -lgcc_s
问题 I am trying to build MariaDB v10.3 with a musl tool chain on x86_64 Debian kernel v4.19. I have mainly been using the musl-gcc gcc wrapper to achieve this. The relevant packages I installed are as follows: musl (1.1.21-2): standard C library musl-dev (1.1.21-2): standard C library development files musl-tools (1.1.21-2): standard C library tools To build MariaDB, I first run: CC=/usr/bin/musl-gcc cmake ../ -DWITHOUT_TOKUDB=1 which exits cleanly, and then I follow that up with: make CC=/usr