Allow to use libgcc instead of libtcc1
commit0e392fadb996d5d5d141b91f3cbfa52460870380
authorDaniel Glöckner <daniel-gl@gmx.net>
Fri, 5 Sep 2008 19:08:37 +0000 (5 21:08 +0200)
committerKirill Smelkov <kirr@landau.phys.spbu.ru>
Sat, 6 Sep 2008 08:54:29 +0000 (6 12:54 +0400)
treecdfbd7ade763b12091fe351917aae81270347cea
parentfe8de955b012369207f64dc79e5cb416c52ee9cf
Allow to use libgcc instead of libtcc1

This patch adds a switch --with-libgcc to configure.
When passed it prevents libtcc1.a from being built and links to
/lib/libgcc_s.so.1 instead of PREFIX/lib/tcc/libtcc1.a.

It will work on ARM when using libgcc from GCC >= 4.2.0.
Prior versions don't have the __floatun[sd]i[sdx]f functions.

It won't work on i386 because of two missing symbols emitted when
floats are cast to integers, but users can provide those symbols
(global short constants) in their code if needed.

  Daniel
Makefile
configure
tccelf.c