[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Building sudo?

From: Christian Jullien
Subject: Re: [Tinycc-devel] Building sudo?
Date: Tue, 17 Nov 2020 14:54:01 +0100

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


# 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.fr@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]