lvm2: Enable cross-compilation

This commit is contained in:
Ben Gamari 2017-10-29 17:02:14 -04:00 committed by Tuomas Tynkkynen
parent 92d3c5689d
commit dc10c551eb

View File

@ -20,7 +20,11 @@ stdenv.mkDerivation {
"--enable-pkgconfig" "--enable-pkgconfig"
"--enable-applib" "--enable-applib"
"--enable-cmdlib" "--enable-cmdlib"
] ++ stdenv.lib.optional enable_dmeventd " --enable-dmeventd"; ] ++ stdenv.lib.optional enable_dmeventd " --enable-dmeventd"
++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libudev libuuid thin-provisioning-tools ]; buildInputs = [ libudev libuuid thin-provisioning-tools ];