rtmpdump: fix cross with Clang (#347712)
This commit is contained in:
commit
c2a49b39d2
@ -31,14 +31,17 @@ stdenv.mkDerivation {
|
||||
})
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray+=(CC="$CC")
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"prefix=$(out)"
|
||||
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||
]
|
||||
++ lib.optional gnutlsSupport "CRYPTO=GNUTLS"
|
||||
++ lib.optional opensslSupport "CRYPTO=OPENSSL"
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin "SYS=darwin"
|
||||
++ lib.optional stdenv.cc.isClang "CC=clang";
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin "SYS=darwin";
|
||||
|
||||
propagatedBuildInputs = [ zlib ]
|
||||
++ lib.optionals gnutlsSupport [ gnutls nettle ]
|
||||
|
Loading…
Reference in New Issue
Block a user