1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
From 8f5bc403c58af348d9671ca390c34cabde89a529 Mon Sep 17 00:00:00 2001
From: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Date: Sat, 9 Jul 2022 16:49:10 +0200
Subject: [PATCH] build fixes for bitbake
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
---
configure.ac | 36 +-----------------------------------
1 file changed, 1 insertion(+), 35 deletions(-)
diff --git a/configure.ac b/configure.ac
index 9ab8824..316f719 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ AM_PROG_AR
AC_PROG_CXX
# This library does not throw exceptions, so we do not generate exception
# handling code. However, users are free to re-enable exception handling.
-CXX="$CXX -std=c++17 -fno-exceptions -Wno-deprecated-declarations"
+#CXX="$CXX -std=c++17 -fno-exceptions -Wno-deprecated-declarations"
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
@@ -149,40 +149,6 @@ AC_ARG_WITH([libfstdir],
AC_SUBST([libfstdir], $with_libfstdir)
-# Flags may be changed after configuring, so this is checked again by
-# weight_test.cc. The check here is to save time in the common case,
-# or when someone does not run `make check`.
-AC_RUN_IFELSE([AC_LANG_PROGRAM([
- #include <cstdio>
-
- template <typename T>
- bool FloatEqIsReflexive(T m) {
- volatile T x = 1.111;
- x *= m;
-
- T y = 1.111;
- y *= m;
-
- return x == y;
- }
- ], [
- volatile double test_value = 1.1;
- if (!FloatEqIsReflexive(static_cast<float>(test_value))) {
- printf("float FAIL\n");
- return 1;
- }
- if (!FloatEqIsReflexive(test_value)) {
- printf("double FAIL\n");
- return 1;
- }
- ])],
- [echo "Float equality is good"],
- [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])
|