From 27fc3ad15edfbc87788bd4ea3902dbcea0fbe869 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 6 Oct 2010 12:52:03 +0200 Subject: [PATCH] botan: fixed by adding '--cpu=$arch_machine' while configuring so it can properly use the optimized code for the target architecture (see note) Note: Without using the '--cpu' configure option the configure script will try to guess for what architecture the code should be optimized. The problem was noticed while trying to build an i686 target on x86-64 build host, which utterly failed without properly specifying the target architecture. --- security/botan/botan.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/botan/botan.conf b/security/botan/botan.conf index 0e120d3f7..3f415f8f4 100644 --- a/security/botan/botan.conf +++ b/security/botan/botan.conf @@ -13,5 +13,5 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -hook_add preconf 5 "./configure.py --prefix=/$prefix --libdir=${libdir##*/}" +hook_add preconf 5 "./configure.py --prefix=/$prefix --libdir=${libdir##*/} --cpu=$arch_machine" var_append makeinstopt ' ' "DOCDIR=$docdir"