aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2018-03-16 12:07:08 -0500
committerEric Engestrom2018-03-20 09:31:07 -0500
commite8d3d885b1362caba4f1e1dfa42d45bac7163124 (patch)
tree8e85173b3168eaed28ee9031b4577db407751a9b /meson.build
parent1a44bbae734fa6aa227d2ac621ff7884af1ae8ef (diff)
downloadexternal-libgbm-e8d3d885b1362caba4f1e1dfa42d45bac7163124.tar.gz
external-libgbm-e8d3d885b1362caba4f1e1dfa42d45bac7163124.tar.xz
external-libgbm-e8d3d885b1362caba4f1e1dfa42d45bac7163124.zip
meson,configure: always define HAVE_VISIBILITY
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 3 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 50daa1d0..826cd915 100644
--- a/meson.build
+++ b/meson.build
@@ -256,10 +256,9 @@ with_man_pages = with_man_pages != 'false' and prog_xslt.found() and prog_sed.fo
256# Used for tets 256# Used for tets
257prog_bash = find_program('bash') 257prog_bash = find_program('bash')
258 258
259if cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''', 259config.set10('HAVE_VISIBILITY',
260 name : 'compiler supports __attribute__(("hidden"))') 260 cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''',
261 config.set10('HAVE_VISIBILITY', true) 261 name : 'compiler supports __attribute__(("hidden"))'))
262endif
263 262
264foreach t : [ 263foreach t : [
265 [with_exynos, 'EXYNOS'], 264 [with_exynos, 'EXYNOS'],