libf2c: mark cross as broken

+10
+10
pkgs/by-name/li/libf2c/package.nix
··· 20 unzip ${src} 21 ''; 22 23 makeFlags = [ 24 "-f" 25 "makefile.u" 26 ]; 27 28 installPhase = '' ··· 44 homepage = "http://www.netlib.org/f2c/"; 45 license = lib.licenses.mit; 46 platforms = lib.platforms.unix; 47 }; 48 }
··· 20 unzip ${src} 21 ''; 22 23 + postPatch = '' 24 + substituteInPlace makefile.u \ 25 + --replace-fail "ld" "${stdenv.cc.targetPrefix}ld" 26 + ''; 27 + 28 makeFlags = [ 29 "-f" 30 "makefile.u" 31 + "CC=${stdenv.cc.targetPrefix}cc" 32 ]; 33 34 installPhase = '' ··· 50 homepage = "http://www.netlib.org/f2c/"; 51 license = lib.licenses.mit; 52 platforms = lib.platforms.unix; 53 + # Generates arith.h at build time. Uses non-standard fpu_control.h. 54 + broken = 55 + (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) 56 + || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.libc != "glibc"); 57 }; 58 }