HomeFreeBSD

emulators/wine: Use the right libgcc_s for 32-bit on amd64

Description

emulators/wine: Use the right libgcc_s for 32-bit on amd64

In our situation, where we leverage 32-bit, i386 executables of Wine
in an amd64 world running 64-bit executables of Wine, the rpath of
$PREFIX/lib/gcc10 which Mk/bsd.gcc.mk sets for the former makes the
dynamic linker attempt to load a 64-bit version of libgcc_s.so which
happens to be at that location on amd64.

Removing this rpath setting at compilation time would be comparatively
more involved, so leverage LD_32_LIBMAP which we are already using in
wine-wow64.sh to point to the system version of libgcc_s.so.

This works since for C code both flavors of libgcc_s.so are fully
compatible and Wine's C++ dependencies Wine (like openal-soft and
various Mesa userspace graphics drivers) are actually compiled with
clang. In other words we are only reverting to the version of the
library they would normally load without rpath interference.

Bump PORTREVISION so new packages with the tweaked script will be
generated.

PR: 259926
Reported by: nc
Tested by: nc

Details

Provenance
iwtcex_gmail.comAuthored on Dec 5 2021, 7:22 PM
geraldCommitted on Dec 5 2021, 7:45 PM
Parents
R11:48920ed457c8: graphics/py-scikit-image: update to 0.19.0
Branches
Unknown
Tags
Unknown