PDA

View Full Version : Tiny C Compiler, cross-compiler & C scripting SRPM


hellork
24th April 2010, 10:03 AM
BROKEN. UPDATE PENDING.

Changelog: This version is
* dynamically linked
* Selinux compatible.
* Builds windows executables
$ i386-win32-tcc fib.c
$ wine fib.exe 12
fib(12) = 144without any special options.
http://thenerdshow.com/rpm/tinycc-git20100114-1.fc13.src.rpm
Enjoy! :cool:

Based on the git version from
http://repo.or.cz/w/tinycc.git

Please test and push any source code changes to there.

Here is the review request, which has been closed for a while.
https://bugzilla.redhat.com/show_bug.cgi?id=tinycc

I wrote the patches so if there are problems building it please let me know. :p


Updated version will build libtcc.a into a shared lib, libtcc.so.1.0 so programs can link against it. The static lib, libtcc1.a is still there, in case people want to build static for some odd reason, but it is no longer needed.

leigh123linux
25th April 2010, 09:30 PM
Moved to Fedora 13 Development Branch (http://forums.fedoraforum.org/forumdisplay.php?f=76)

hellork
25th April 2010, 09:51 PM

UPDATE
http://thenerdshow.com/rpm/tinycc-git20100114-2.fc13.src.rpm

Other version was not dynamically linked. Fedora's CFLAGS were overriding the Makefile and making it build static for some reason. I fixed Selinux patch so it works with shared library. The library test works, too.

I went ahead and merged all the specfile hacks into the Makefile. This makes the .spec look much cleaner.

This one is much more standard for Fedora.