diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-01-23 15:34:53 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-01-23 15:34:53 +0000 |
commit | 12d2821bf56be27d33b90f109220a342a11828ca (patch) | |
tree | a7899a309b261e217e6ef4be8585e5f7dd29d806 /pkgs/development/compilers/gcc/11/default.nix | |
parent | c5c7778f0987596bfeddf1b0d15b897761b3e516 (diff) | |
download | nixpkgs-12d2821bf56be27d33b90f109220a342a11828ca.tar nixpkgs-12d2821bf56be27d33b90f109220a342a11828ca.tar.gz nixpkgs-12d2821bf56be27d33b90f109220a342a11828ca.tar.bz2 nixpkgs-12d2821bf56be27d33b90f109220a342a11828ca.tar.lz nixpkgs-12d2821bf56be27d33b90f109220a342a11828ca.tar.xz nixpkgs-12d2821bf56be27d33b90f109220a342a11828ca.tar.zst nixpkgs-12d2821bf56be27d33b90f109220a342a11828ca.zip |
treewide: remove -ldl linker flags
With all libcs I'm aware of, libdl is now either empty (Glibc, musl, uclibc, illumos), a symlink to libc or equivalent (Apple), or does not exist (FreeBSD, NetBSD). So explicitly linking libdl now does nothing for the former platforms, and breaks the build for the latter platforms. With this patch I've removed -ldl from all overridden linker flags for all free packages in Nixpkgs. Everything still seems to build.
Diffstat (limited to 'pkgs/development/compilers/gcc/11/default.nix')
-rw-r--r-- | pkgs/development/compilers/gcc/11/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/11/default.nix b/pkgs/development/compilers/gcc/11/default.nix index 265e696523d..477c033c2ba 100644 --- a/pkgs/development/compilers/gcc/11/default.nix +++ b/pkgs/development/compilers/gcc/11/default.nix @@ -185,7 +185,7 @@ stdenv.mkDerivation ({ depsTargetTarget = optional (!crossStageStatic && threadsCross != {} && threadsCross.package != null) threadsCross.package; - NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm -ldl"; + NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm"; preConfigure = (import ../common/pre-configure.nix { inherit lib; |