[elinks-users] elinks-0.9.2 build issues
fonseca at diku.dk
Wed Oct 20 13:15:07 PDT 2004
Jonas Fonseca <fonseca at diku.dk> wrote Wed, Oct 20, 2004:
> Nelson H. F. Beebe <beebe at math.utah.edu> wrote Tue, Oct 19, 2004:
> > * On several systems, I get this error:
> > gcc: unrecognized option `-rdynamic'
> I have met this error myself and suspect that the following code
> from configure.in is wrong
> dnl Check for -rdynamic
> AC_MSG_CHECKING([for -rdynamic])
> LDFLAGS="$LDFLAGS -rdynamic"
> AC_TRY_LINK(, , have_rdynamic=yes, have_rdynamic=no)
> test "$have_rdynamic" = no && LDFLAGS="$LDFLAGS_X"
> Maybe actually compiling/linking some code will fix it
> AC_TRY_LINK([int a = 5;], [if (a == 5) a = 7;], have_rdynamic=yes, have_rdynamic=no)
Obviously gcc only warns about unrecognized options. libtool.m4 has a
nice macro that redirect output from the test compilation and then
checks `test -s <gcc-output-file>' to see gcc printed a warning. I hope
to replace the current -rdynamic check with something similar to what
I described soon.
More information about the elinks-users