[dia: 100/105] #19 review: make libm optional since it is not always separate library.
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia: 100/105] #19 review: make libm optional since it is not always separate library.
- Date: Mon, 28 Jan 2019 19:27:45 +0000 (UTC)
commit 6334ca868710adffecce8a22c16c4f14071caa97
Author: Eduard Nicodei <eddnicodei gmail com>
Date: Sun Jan 27 12:20:15 2019 +0000
#19 review: make libm optional since it is not always separate library.
Thanks to @jpakkane for pointing this out!
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index f3153bfc..b780a38b 100644
--- a/meson.build
+++ b/meson.build
@@ -19,7 +19,8 @@ libcairo_dep = dependency('cairo')
# Therefore, remove all references to HAVE_CAIRO
conf.set('HAVE_CAIRO', 1)
-libm_dep = cc.find_library('m')
+# Not required since not all platforms ship a separate libm.
+libm_dep = cc.find_library('m', required: false)
# This is needed for some platforms (eg. BSD).
libc_dep = cc.find_library('c', required: false)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]