summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorq66 <daniel@octaforge.org>2020-06-11 02:37:26 +0200
committerq66 <daniel@octaforge.org>2020-06-11 02:37:26 +0200
commit9fc310db63f5310160c94e130db8d80c6acc7c2b (patch)
tree7e10d1fd430dc42db6691a3afc972c604ce6d9ee
parent6e879880718611660e89737627ec998129139699 (diff)
try linking against execinfo when execinfo.h is present
This should fix build on systems where execinfo.h is present but the APIs are implemented in a separate library - commonly a case on the BSDs as well as on non-glibc libcs and so on.
-rw-r--r--meson.build3
-rw-r--r--src/bin/meson.build1
2 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 7c7e65383..57e7da821 100644
--- a/meson.build
+++ b/meson.build
@@ -184,6 +184,9 @@ if cc.has_header('netinet/in.h') == true
184endif 184endif
185if cc.has_header('execinfo.h') == true 185if cc.has_header('execinfo.h') == true
186 config_h.set('HAVE_EXECINFO_H' , '1') 186 config_h.set('HAVE_EXECINFO_H' , '1')
187 dep_execinfo = cc.find_library('execinfo', required: false)
188else
189 dep_execinfo = dependency('', required: false)
187endif 190endif
188if cc.has_function('explicit_bzero') == true 191if cc.has_function('explicit_bzero') == true
189 config_h.set('HAVE_EXPLICIT_BZERO' , '1') 192 config_h.set('HAVE_EXPLICIT_BZERO' , '1')
diff --git a/src/bin/meson.build b/src/bin/meson.build
index a3173eb6d..a3c451360 100644
--- a/src/bin/meson.build
+++ b/src/bin/meson.build
@@ -15,6 +15,7 @@ deps_e = [
15 dep_rt, 15 dep_rt,
16 dep_m, 16 dep_m,
17 dep_dl, 17 dep_dl,
18 dep_execinfo,
18 dep_eina, 19 dep_eina,
19 dep_eet, 20 dep_eet,
20 dep_eeze, 21 dep_eeze,