volk: remove gcc wrapper

This commit is contained in:
Doron Behar
2026-01-15 13:16:48 +02:00
parent d301287a04
commit ea415ea799
+10
View File
@@ -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 = {