Allow multiple space-separated flags

This commit is contained in:
Rodrigo Arias 2020-07-27 19:13:11 +02:00
parent b93851ba93
commit f6137a7bc0

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation {
];
preBuild = (if cflags != null then ''
makeFlagsArray+=(CFLAGS=${cflags})
makeFlagsArray+=(CFLAGS="${cflags}")
'' else "");
makeFlags = [