void-packages/srcpkgs/openfst/patches/cross-compile.patch

24 lines
766 B
Diff

From 256f83e52112a5cd37e37a34beff2c4f0eae4660 Mon Sep 17 00:00:00 2001
From: Nickolay Shmyrev <nshmyrev@gmail.com>
Date: Tue, 16 Jun 2020 15:22:19 +0200
Subject: [PATCH] Don't fail on cross-compile
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index d52ed02..0f53b4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,7 +180,8 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([
[AC_MSG_FAILURE(m4_normalize([
Test float equality failed!
Compile with -msse -mfpmath=sse if using g++.
- ]))])
+ ]))],
+ [echo "Ignoring test for cross-compilation"])
AC_CHECK_LIB([dl], dlopen, [DL_LIBS=-ldl])
AC_SUBST([DL_LIBS])