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
This commit is contained in:
Lluís Batlle i Rossell 2012-05-24 19:12:36 +00:00
parent d9fdfffef9
commit d5a5a30ae0

View File

@ -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"
'';