[PATCH] winewrapper: Use early binding on FreeBSD

Alexandre Julliard julliard at winehq.org
Tue Jul 27 14:44:09 CDT 2021


Gerald Pfeifer <gerald at pfeifer.com> writes:

> FreeBSD requires LD_BIND_NOW / LD_32_BIND_NOW to address the issue
> raised in https://bugs.winehq.org/show_bug.cgi?id=50257 .
>
> Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
> ---
>  tools/winewrapper | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/tools/winewrapper b/tools/winewrapper
> index 2206d7c4446..85380423753 100755
> --- a/tools/winewrapper
> +++ b/tools/winewrapper
> @@ -84,6 +84,13 @@ else
>    export LD_LIBRARY_PATH
>  fi
>  
> +if [ "`uname -s`" = "FreeBSD" ]
> +then
> +  # Workaround for https://bugs.winehq.org/show_bug.cgi?id=50257
> +  export LD_BIND_NOW=1
> +  export LD_32_BIND_NOW=1
> +fi
> +

That doesn't look like a proper solution, it's only hiding the bug, and
then only when running from inside the build tree.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list