From c545b67dfc57033134762e53219bf2b4e1f46a7b Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 13 Jun 2019 20:58:52 +0200 Subject: 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. --- firefox.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firefox.spec b/firefox.spec index d473fd9..7f65b9e 100644 --- a/firefox.spec +++ b/firefox.spec @@ -542,6 +542,11 @@ MOZ_LINK_FLAGS="-Wl,--no-keep-memory" echo "ac_add_options --enable-linker=gold" >> .mozconfig %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} export RUSTFLAGS="-Cdebuginfo=0" %endif -- cgit