X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=meson.build;h=b9a6da01d314503f7e54bfe18c9e76be46adb66d;hb=8c8e4fd5c60d4b09d7e4153c83560f0668c3a80d;hp=898d025f0662dabf5811858af190b7c39546af84;hpb=b4f508ab5990118ea0b9214d0933e0799c36d1f7;p=mesa.git diff --git a/meson.build b/meson.build index 898d025f066..b9a6da01d31 100644 --- a/meson.build +++ b/meson.build @@ -1149,7 +1149,7 @@ foreach h : ['xlocale.h', 'sys/sysctl.h', 'linux/futex.h', 'endian.h', 'dlfcn.h' endif endforeach -foreach f : ['strtof', 'mkostemp', 'timespec_get', 'memfd_create', 'random_r', 'flock'] +foreach f : ['strtof', 'mkostemp', 'timespec_get', 'memfd_create', 'random_r', 'flock', 'strtok_r'] if cc.has_function(f) pre_args += '-DHAVE_@0@'.format(f.to_upper()) endif @@ -1447,12 +1447,8 @@ else endif dep_glvnd = null_dep -glvnd_has_headers_and_pc_files = false if with_glvnd - dep_glvnd = dependency('libglvnd', version : '>= 0.2.0') - # GLVND before 1.2 was missing its pkg-config and header files, forcing every - # vendor to provide them and the distro maintainers to resolve the conflict. - glvnd_has_headers_and_pc_files = dep_glvnd.version().version_compare('>= 1.2.0') + dep_glvnd = dependency('libglvnd', version : '>= 1.2.0') pre_args += '-DUSE_LIBGLVND=1' endif @@ -1684,7 +1680,15 @@ endif pkg = import('pkgconfig') -prog_nm = find_program('nm', required : false) +if host_machine.system() == 'windows' + prog_dumpbin = find_program('dumpbin', required : false) + with_symbols_check = prog_dumpbin.found() and with_tests + symbols_check_args = ['--dumpbin', prog_dumpbin.path()] +else + prog_nm = find_program('nm') + with_symbols_check = with_tests + symbols_check_args = ['--nm', prog_nm.path()] +endif # This quirk needs to be applied to sources with functions defined in assembly # as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391