Opportunistic measures to prevent the need to convert null to string; they may work or may not work for actually building

This commit is contained in:
Michael Raskin
2012-09-24 23:49:11 +04:00
parent 732811700a
commit 4517d03af1
4 changed files with 12 additions and 9 deletions
+4 -3
View File
@@ -9,10 +9,11 @@ stdenv.mkDerivation rec {
buildInputs = [zlib openssl];
makeFlags = [
"USE_ZLIB=1" "USE_OPENSSL=1"
"SYSROOT=${stdenv.gcc.libc}"
"SYSROOT_ALT=${stdenv.gcc.gcc}"
''PREFIX=$(out)''
];
]
++ stdenv.lib.optional (stdenv.gcc.gcc != null) "SYSROOT_ALT=${stdenv.gcc.gcc}"
++ stdenv.lib.optional (stdenv.gcc.libc != null) "SYSROOT=${stdenv.gcc.libc}"
;
meta = {
homepage = "http://www.creytiv.com/re.html";
platforms = with stdenv.lib.platforms; linux;