Tcc does not support all the ld options used by gcc, especially when building .so.
.a are much better supported. Even on RPi, I can compile the latest sudo version using only static libs: tar xvzf sudo-1.9.3p1.tar.gz cd sudo-1.9.3p1/ CC=tcc ./configure --enable-shared=no make # First sudo is because I don’t want to install fresh version sudo ./src/sudo ls From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of James Mills Sent: Tuesday, November 17, 2020 14:40 To: tinycc-devel@nongnu.org Subject: [Tinycc-devel] Building sudo? Hi guys, Tried to build sudo with tcc and it fails with: libtool: link: (cd .libs/sudoers.lax/libparsesudoers.a && ar x "/usr/ports/sudo/build/src/sudo-1.9.3p1/plugins/sudoers/./.libs/libparsesudoers.a") usage: tcc -ar [rcsv] lib file... create library ([abdioptxN] not supported). make[1]: *** [Makefile:277: sudoers.la] Error 1 make[1]: Leaving directory '/usr/ports/sudo/build/src/sudo-1.9.3p1/plugins/sudoers' make: *** [Makefile:108: all] Error 2 # Is tcc missing a feature needed here? Is there a work-around? The damn thing _almost_ built :D cheers Jmaes James Mills / prologic E: <mailto:prolo...@shortcircuit.net.au> prolo...@shortcircuit.net.au W: <mailto:https://prologic.shortcircuit.net.au> prologic.shortcircuit.net.au Blog: <https://prologic.blog/> Read my Blog Twtxt: <https://twtxt.net/user/prologic> Follow me on twtxt.net
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel