John Hawkinson <[EMAIL PROTECTED]> wrote Sat, Jun 02, 2007:
> Hi, I'm not the list. Here are some fixes to build under Solaris 10
> (no -rdynamic, no gzclearerr()). Against elinks-0.12-20070601.
> 
> Also included is a patch to add more help for -dump-color-mode.
> 
> [EMAIL PROTECTED]
>   John Hawkinson
> 
> --- configure.in      2007/06/01 19:18:56     1.1
> +++ configure.in      2007/06/02 22:21:07
> @@ -256,10 +256,21 @@
>  dnl
>  dnl FIXME: This check doesn't work. Something to do with the compiler
>  dnl happily ignoring it and stderr not being checked for error messages.
> +dnl This works instead:
>  AC_MSG_CHECKING([for -rdynamic])
>  LDFLAGS_X="$LDFLAGS"
>  LDFLAGS="$LDFLAGS -rdynamic"
> -AC_TRY_LINK([], [], have_rdynamic=yes, have_rdynamic=no)
> +cat > conftest.$ac_ext << _ACEOF
> +int main() { return 0; }
> +_ACEOF
> +(eval $ac_compile) 2>conftest.er1
> +(eval $ac_link) 2>conftest.err
> +if test -s conftest.err
> +then
> +  have_rdynamic=no
> +else
> +  have_rdynamic=yes
> +fi
>  test "$have_rdynamic" = no && LDFLAGS="$LDFLAGS_X"
>  AC_MSG_RESULT($have_rdynamic)

Wow, this is really great. A lot of people has mentioned this over the
years and so finally being able to provide a fix is very helpful.

-- 
Jonas Fonseca
_______________________________________________
elinks-dev mailing list
elinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to