Unverified Commit 453c97e2 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

volk: remove gcc wrapper (#480340)

parents 164787f2 ea415ea7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  cmake,
  python3,
  removeReferencesTo,
  enableModTool ? true,
}:

@@ -25,8 +26,17 @@ stdenv.mkDerivation (finalAttrs: {
    cmake
    python3
    python3.pkgs.mako
    removeReferencesTo
  ];

  # Don't embed the path to stdenv.cc in the output, see:
  #
  # - https://github.com/gnuradio/volk/blob/v3.2.0/lib/constants.c.in#L37-L41
  # - https://github.com/gnuradio/volk/blob/v3.2.0/lib/CMakeLists.txt#L403-L405
  postInstall = ''
    remove-references-to -t ${stdenv.cc} $(readlink -f "''${!outputLib}"/lib/libvolk${stdenv.hostPlatform.extensions.sharedLibrary})
  '';

  doCheck = true;

  meta = {