From d5a5a30ae0146878ae3de15f7f65c99b79093553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 24 May 2012 19:12:36 +0000 Subject: [PATCH] Adding UCLIBC_SUSV4_LEGACY, otherwise we get this building gcc: armv5tel-unknown-linux-gnueabi/libstdc++-v3/include/cstdio:133:11: error: '::tmpnam' has not been declared http://hydra.nixos.org/build/2644907 svn path=/nixpkgs/trunk/; revision=34226 --- pkgs/os-specific/linux/uclibc/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/os-specific/linux/uclibc/default.nix b/pkgs/os-specific/linux/uclibc/default.nix index e833948f5bf..6ac89c4da9f 100644 --- a/pkgs/os-specific/linux/uclibc/default.nix +++ b/pkgs/os-specific/linux/uclibc/default.nix @@ -36,6 +36,7 @@ let archMakeFlag = if (cross != null) then "ARCH=${cross.arch}" else ""; crossMakeFlag = if (cross != null) then "CROSS=${cross.config}-" else ""; + # UCLIBC_SUSV4_LEGACY defines 'tmpnam', needed for gcc libstdc++ builds. nixConfig = '' RUNTIME_PREFIX "/" DEVEL_PREFIX "/" @@ -44,6 +45,7 @@ let UCLIBC_HAS_RPC y DO_C99_MATH y UCLIBC_HAS_PROGRAM_INVOCATION_NAME y + UCLIBC_SUSV4_LEGACY y KERNEL_HEADERS "${linuxHeaders}/include" '';