Try to fix linking with libraries in /app/lib64
When building a flatpak module, make sure to pass -L%{_libdir} to ld so that it can find libraries installed in /app/lib64. Normally, this is set through the %{__global_ldflags} macro, but firefox doesn't use that, so we need to pass the correct -L manually. This should hopefully fix the issue with pipewire-0.2 linking that recent firefox flatpak builds have run into.
This commit is contained in:
parent
92e37b0a30
commit
c545b67dfc
@ -542,6 +542,11 @@ MOZ_LINK_FLAGS="-Wl,--no-keep-memory"
|
|||||||
echo "ac_add_options --enable-linker=gold" >> .mozconfig
|
echo "ac_add_options --enable-linker=gold" >> .mozconfig
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?flatpak}
|
||||||
|
# Make sure the linker can find libraries in /app/lib64 as we don't use
|
||||||
|
# __global_ldflags that normally sets this.
|
||||||
|
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}"
|
||||||
|
%endif
|
||||||
%ifarch %{arm} %{ix86}
|
%ifarch %{arm} %{ix86}
|
||||||
export RUSTFLAGS="-Cdebuginfo=0"
|
export RUSTFLAGS="-Cdebuginfo=0"
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user