mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
28cec43807
Compiles faster, is PIC by default, and does not have pkgconfig files with wrong paths. Add various fixes to it as it seems cross compilation was never tested. Signed-off-by: Rosen Penev <rosenp@gmail.com>
25 lines
796 B
Diff
25 lines
796 B
Diff
From 777652585924034deeba98ae3192f26bc32bb661 Mon Sep 17 00:00:00 2001
|
|
From: Rosen Penev <rosenp@gmail.com>
|
|
Date: Fri, 29 Apr 2022 18:19:53 -0700
|
|
Subject: [PATCH 6/7] meson: fix isnan check
|
|
|
|
musl only has isnan as a macro, not as a function. Handle the former
|
|
case.
|
|
|
|
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
---
|
|
meson.build | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -622,7 +622,7 @@ rtas_libs = cc.find_library('rtas', requ
|
|
conf.set('HAVE_LIBRTAS', rtas_libs.found() ? 1 : false)
|
|
|
|
math_libs = []
|
|
-if not cc.has_function('isnan')
|
|
+if not cc.has_header_symbol('math.h', 'isnan')
|
|
lib = cc.find_library('m', required : true)
|
|
if (cc.has_function('isnan', dependencies : lib) and
|
|
cc.has_function('__isnan', dependencies : lib))
|