From d9c0280d5e9b636c75c315c8b7aad12e84e67570 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 15 May 2023 21:33:56 +0300 Subject: gnu: tokyocabinet: Fix building on non-x86 systems. * gnu/packages/databases.scm (tokyocabinet)[arguments]: Adjust configure-flags to not enable x86 specific cflags when building for other architectures. --- gnu/packages/databases.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 2b4ec5e09a..3eaaf21a8c 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -2659,7 +2659,11 @@ database and supports many programming languages. It is a NoSQL database.") (build-system gnu-build-system) (arguments `(#:configure-flags - (list "--enable-pthread" "--enable-off64" "--enable-fastest" + (list "--enable-pthread" "--enable-off64" + ,@(if (target-x86?) + ;; Enables x86 specific cflags. + '("--enable-fastest") + '()) (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")))) (inputs -- cgit v1.2.3