summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-05-24 19:12:36 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-05-24 19:12:36 +0000
commitd5a5a30ae0146878ae3de15f7f65c99b79093553 (patch)
tree2cfc3e9c40cccfc1a7c1d18fc941bc8af43dd82c
parentd9fdfffef9d6538cf2642777ad9027af5aeee8d9 (diff)
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
-rw-r--r--pkgs/os-specific/linux/uclibc/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/uclibc/default.nix b/pkgs/os-specific/linux/uclibc/default.nix
index e833948f5bf2..6ac89c4da9f6 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"
'';