Comment 1 for bug 1942352

Revision history for this message
Apteryx (maxco) wrote :

I've peeked at the fix that was done for the fox1.6, which was also negatively impacted by -Bsymbolic-functions, and it was doing this in its debian/rules file:

# Ubuntu defaults to use -Bsymbolic-functions, which breaks linking
# shared objects with static FFmpeg archives (see:
# https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/1942352).
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
ifneq (,$(LDFLAGS))
  LDFLAGS := $(filter-out %-Bsymbolic-functions,$(LDFLAGS))
endif
endif

It is a good workaround.