From e246a0a1d2479700a2a551030f688f27fe907b84 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 1 Sep 2013 20:18:29 +0200 Subject: [PATCH] lvm2: fixed detection of malloc() and realloc() when cross-compiling --- base/lvm2/lvm2.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/base/lvm2/lvm2.conf b/base/lvm2/lvm2.conf index d36133d73..d05f90693 100644 --- a/base/lvm2/lvm2.conf +++ b/base/lvm2/lvm2.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../lvm2/lvm2.conf -# Copyright (C) 2007 - 2011 The OpenSDE Project +# Copyright (C) 2007 - 2013 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -18,6 +18,16 @@ set_confopt var_append extraconfopt ' ' '--datarootdir=$datadir' +# always regenerate autotools files +# also fixes malloc() detection avoiding undefined reference to `rpl_malloc' +hook_add preconf 9 'autoreconf -vfi' + +# cross-compiling help +if atstage cross; then + # assuming a gnu compatible realloc + var_append configcache ' ' 'ac_cv_func_realloc_0_nonnull=yes' +fi + if [ "$SDECFG_STATIC" == 1 ]; then var_append patchfiles ' ' "$confdir/no_dynamic.diff" var_append confopt ' ' '--enable-static_link=yes'