geoip: fix cross-build

This commit is contained in:
Jörg Thalheim 2018-12-10 22:56:30 +00:00 committed by Robin Gloster
parent 562d9d472c
commit 629d011cea

View File

@ -17,6 +17,11 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ autoreconfHook ];
configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
postConfigure = ''
find . -name Makefile.in -exec sed -i -r 's#^pkgdatadir\s*=.+$#pkgdatadir = ${dataDir}#' {} \;
'';