mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
glibc: Remove two tiny old cross hacks
- Name is already suffixed - Env vars are already exported
This commit is contained in:
parent
7f1c5a124c
commit
7d0d12e3e0
@ -155,8 +155,7 @@ stdenv.mkDerivation ({
|
||||
// (removeAttrs args [ "withLinuxHeaders" "withGd" ]) //
|
||||
|
||||
{
|
||||
name = name + "-${version}${patchSuffix}" +
|
||||
lib.optionalString (cross != null) "-${cross.config}";
|
||||
name = name + "-${version}${patchSuffix}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/glibc/glibc-${version}.tar.xz";
|
||||
@ -190,11 +189,6 @@ stdenv.mkDerivation ({
|
||||
libc_cv_c_cleanup=yes
|
||||
libc_cv_gnu89_inline=yes
|
||||
EOF
|
||||
|
||||
export BUILD_CC=gcc
|
||||
export CC="$crossConfig-gcc"
|
||||
export AR="$crossConfig-ar"
|
||||
export RANLIB="$crossConfig-ranlib"
|
||||
'';
|
||||
|
||||
preBuild = lib.optionalString withGd "unset NIX_DONT_SET_RPATH";
|
||||
|
Loading…
Reference in New Issue
Block a user