Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2019-12-13 01:09:56 +0300
committerHenrik Gramner <gramner@twoorioles.com>2019-12-17 21:01:24 +0300
commit6b611d36acab8ce1afdd528599322bb6b2d28727 (patch)
treeba9c996c79da0089f7f74d2f85de0f7c4be96064 /meson.build
parenteb211838b478491ac17ea2cbfa6e2797376e369e (diff)
Linux: Add a workaround for a glibc stack size issue
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build18
1 files changed, 13 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index bf146b8..aa0eb13 100644
--- a/meson.build
+++ b/meson.build
@@ -84,13 +84,15 @@ test_args = []
optional_arguments = []
-# Define _POSIX_C_SOURCE to POSIX.1–2001 (IEEE Std 1003.1-2001)
-test_args += '-D_POSIX_C_SOURCE=200112L'
-add_project_arguments('-D_POSIX_C_SOURCE=200112L', language: 'c')
-
-if host_machine.system() == 'darwin'
+if host_machine.system() == 'linux'
+ test_args += '-D_GNU_SOURCE'
+ add_project_arguments('-D_GNU_SOURCE', language: 'c')
+elif host_machine.system() == 'darwin'
test_args += '-D_DARWIN_C_SOURCE'
add_project_arguments('-D_DARWIN_C_SOURCE', language: 'c')
+else
+ test_args += '-D_POSIX_C_SOURCE=200112L'
+ add_project_arguments('-D_POSIX_C_SOURCE=200112L', language: 'c')
endif
if host_machine.system() == 'windows'
@@ -131,6 +133,12 @@ else
endif
endif
+libdl_dependency = []
+if host_machine.system() == 'linux'
+ libdl_dependency = cc.find_library('dl', required : false)
+endif
+
+
# Header checks
stdatomic_dependency = []