libiberty: fix references to /usr/bin/uname for FreeBSD build system

This commit is contained in:
Audrey Dutcher
2024-11-17 09:54:13 -07:00
parent 68f3004020
commit d77191f776
+6
View File
@@ -14,6 +14,12 @@ stdenv.mkDerivation {
postUnpack = "sourceRoot=\${sourceRoot}/libiberty";
# needed until config scripts are updated to not use /usr/bin/uname on FreeBSD native
# updateAutotoolsGnuConfigScriptsHook doesn't seem to work here
postPatch = ''
substituteInPlace ../config.guess --replace-fail /usr/bin/uname uname
'';
configureFlags = [ "--enable-install-libiberty" ]
++ lib.optional (!staticBuild) "--enable-shared";