Sean McGovern <[email protected]> writes:

> Our test tools now require SUSv3 semantics for freopen(),
> which is only properly enabled on Solaris when _XOPEN_SOURCE >= 600
> ---
>  configure |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index 67371c8..a0deffe 100755
> --- a/configure
> +++ b/configure
> @@ -2395,6 +2395,7 @@ case $target_os in
>          enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
>          network_extralibs="-lsocket -lnsl"
>          add_cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
> +        enabled cross_compile || check_host_cflags -D__EXTENSIONS__ 
> -D_XOPEN_SOURCE=600
>          # When using suncc to build, the Solaris linker will mark
>          # an executable with each instruction set encountered by
>          # the Solaris assembler.  As our libraries contain their own
> -- 

Just FYI, this is the wrong place to be doing this since that section
sets up things for the _target_ OS.  It would thus not do the right
thing if building on Solaris for another target.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to