Re: [Tinycc-devel] Building sudo?

2020-11-17 Thread Christian Jullien
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:   prolo...@shortcircuit.net.au

W:   prologic.shortcircuit.net.au

Blog:    Read my Blog

Twtxt:   Follow me on twtxt.net

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


[Tinycc-devel] Building sudo?

2020-11-17 Thread James Mills
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: prolo...@shortcircuit.net.au
W: prologic.shortcircuit.net.au
Blog:  Read my Blog 
Twtxt: Follow me on twtxt.net 
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel