summaryrefslogtreecommitdiff
path: root/graphics/mesa/patches/patch-meson_build
blob: cf6b5a02d5cf0dc045dff1d1ecec19ddb9b8862c (plain)
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
Index: meson.build
--- meson.build.orig
+++ meson.build
@@ -1151,7 +1151,6 @@ else
     '-Werror=empty-body',
     '-Werror=incompatible-pointer-types',
     '-Werror=int-conversion',
-    '-Wimplicit-fallthrough',
     '-Wno-missing-field-initializers',
     '-Wno-format-truncation',
     '-fno-math-errno',
@@ -1418,6 +1417,7 @@ functions_to_detect = {
   'timespec_get': '#include <time.h>',
   'memfd_create': '',
   'random_r': '',
+  'arc4random_buf': '',
   'flock': '',
   'strtok_r': '',
   'getrandom': '',
@@ -1549,6 +1549,9 @@ if cc.links('int main() { return 0; }',
 endif
 
 ld_args_build_id = cc.get_supported_link_arguments('-Wl,--build-id=sha1')
+if ld_args_build_id.length() != 0
+  pre_args += '-DHAVE_LD_BUILD_ID'
+endif
 
 # check for dl support
 dep_dl = null_dep