This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Bizarre test for main in libm
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: Richard dot Earnshaw at arm dot com
- Date: Thu, 01 May 2003 11:38:19 +0100
- Subject: Bizarre test for main in libm
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
libstdc++-v3/aclocal.m4 contains the following test:
dnl GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
AC_DEFUN(GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT, [
dnl Check for complex versions of math functions of platform.
AC_CHECK_LIB(m, main)
Now this test for main in libm is broken as best I can see, since it is
expanded into
int main() {
main()
; return 0; }
Which of course always compiles and links without error (since it's
recursive).
Does anyone know why that test is there in the first place?
R.