Allow to use libgcc instead of libtcc1
commit15e0dc08a67003f72c59a1f06d762245824d2ae6
authorDaniel Glöckner <daniel-gl@gmx.net>
Fri, 5 Sep 2008 19:08:37 +0000 (5 21:08 +0200)
committergrischka <grischka>
Fri, 12 Sep 2008 20:22:58 +0000 (12 22:22 +0200)
tree3082b92909e6b7b9f99e6a8bcd6c684f511781e2
parent256f6e6200be1a73cbf663938213778624436cad
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