[PATCH] winewrapper: Use early binding on FreeBSD

Alexandre Julliard julliard at winehq.org
Thu Jul 29 07:31:28 CDT 2021


Gerald Pfeifer <gerald at pfeifer.com> writes:

> On Tue, 27 Jul 2021, Alexandre Julliard wrote:
>>> +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.
>
> For the actual ports (ports/emulators/wine-devel) we have put a script
> in place that sets those variables and then invokes the actual binary.
>
> My patch was meant to people helping test and development upstream Wine.
>
> Any chance of getting this in until, if ever, the issue gets resolved
> differently?
>
> (Looking at https://bugs.winehq.org/show_bug.cgi?id=50257 this does not
> appear to be simply fixable? Or do you see a way to address this on the
> Wine side?)

It looks like a FreeBSD linker bug, someone will have to investigate
exactly why the linker behaves that way. Depending on what it does, it's
possible that using the -nolibc flag would work around it.

But really the right fix is to build with Mingw. I don't know why that
doesn't work on FreeBSD, but fixing that should be the priority.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list