#12 Try to fix linking with libraries in /app/lib64
Merged 4 years ago by xhorak. Opened 4 years ago by kalev.
rpms/ kalev/firefox fix-pipewire-linking  into  master

file modified
+5
@@ -542,6 +542,11 @@ 

  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

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.

Pull-Request has been merged by xhorak

4 years ago