On Thu, Apr 23, 2015 at 04:09:53PM +0200, François Revol wrote:
On 23/04/2015 15:00, François Revol wrote:
I've looked into porting Gambas3 <http://gambas.sourceforge.net/> and I
noticed this in the configure tests:
AC_CHECK_LIB(gcc_s, main, CXX_LIB="$CXX_LIB -lgcc_s")
AC_CHECK_LIB(stdc++, main, CXX_LIB="$CXX_LIB -lstdc++")
Obviously it fails on Haiku because they don't have a main() call.
Do we want to mimic the linux behaviour or fix those checks (but then
I'm not sure which symbol to test for on those)?
I found some unmangled symbols to test for for those. For the record:
AC_CHECK_LIB(gcc_s, _Unwind_Resume, CXX_LIB="$CXX_LIB -lgcc_s")
AC_CHECK_LIB(stdc++, __cxa_throw, CXX_LIB="$CXX_LIB -lstdc++")
Still, it's probably not the only case with those ugly tests.