Sean McGovern <[email protected]> writes:

> 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
> guards for processor-specific code, instead suppress
> generation of the HWCAPS ELF section on Solaris x86 only.
> ---
>  configure |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index d5635f4..fa8a824 100755
> --- a/configure
> +++ b/configure
> @@ -2369,6 +2369,14 @@ case $target_os in
>          enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
>          network_extralibs="-lsocket -lnsl"
>          add_cppflags -D__EXTENSIONS__
> +        # 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
> +        # guards for processor-specific code, instead suppress
> +        # generation of the HWCAPS ELF section on Solaris x86 only.
> +        if enabled suncc; then
> +            enabled x86 && echo "hwcap_1 = OVERRIDE;" > mapfile && 
> add_ldflags -Wl,-M,mapfile
> +        fi

enabled_all suncc x86 && ...

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

Reply via email to