Re: Checking for -rdynamic flag in gcc/configure

2009-08-31 Thread Ian Lance Taylor
"Joseph S. Myers" writes: > On Fri, 28 Aug 2009, Ian Lance Taylor wrote: > >> Link a small program with -rdynamic, one which defines a globally >> visible function which is not called. Run objdump -T and see if you can >> see that symbol in the output. >> >> If you follow this path you must do

Re: Checking for -rdynamic flag in gcc/configure

2009-08-29 Thread Joseph S. Myers
On Fri, 28 Aug 2009, Ian Lance Taylor wrote: > Link a small program with -rdynamic, one which defines a globally > visible function which is not called. Run objdump -T and see if you can > see that symbol in the output. > > If you follow this path you must do the in_tree_ld/ld_ver dance so that

Re: Checking for -rdynamic flag in gcc/configure

2009-08-28 Thread Ian Lance Taylor
Steve Ellcey writes: > I have a question about the check for -rdynamic in gcc/configure. > What we have in configure.ac is: > > # Check -rdynamic > LDFLAGS="$LDFLAGS -rdynamic" > AC_MSG_CHECKING([for -rdynamic]) > AC_TRY_LINK([],[return 0;], > [AC_MSG_RESULT([yes]); have_rdynamic=yes]

Checking for -rdynamic flag in gcc/configure

2009-08-28 Thread Steve Ellcey
I have a question about the check for -rdynamic in gcc/configure. What we have in configure.ac is: # Check -rdynamic LDFLAGS="$LDFLAGS -rdynamic" AC_MSG_CHECKING([for -rdynamic]) AC_TRY_LINK([],[return 0;], [AC_MSG_RESULT([yes]); have_rdynamic=yes], [AC_MSG_RESULT([no])]) if tes