Merge pull request #177290 from trofi/workaround-fno-common-for-gnome.nautilus-python

gnome.nautilus-python: add -fcommon workaround
main
Sandro 2 years ago committed by GitHub
commit cf1ec58e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      pkgs/desktops/gnome/misc/nautilus-python/default.nix

@ -51,6 +51,13 @@ stdenv.mkDerivation rec {
gtk3 # required by libnautilus-extension
];
# Workaround build failure on -fno-common toolchains:
# ld: nautilus-python-object.o:src/nautilus-python.h:61: multiple definition of
# `_PyNautilusMenu_Type'; nautilus-python.o:src/nautilus-python.h:61: first defined here
# TODO: remove it once upstream fixes and releases:
# https://gitlab.gnome.org/GNOME/nautilus-python/-/merge_requests/7
NIX_CFLAGS_COMPILE = "-fcommon";
makeFlags = [
"PYTHON_LIB_LOC=${python3}/lib"
];

Loading…
Cancel
Save