From f04316e3f0395e746b3047344d398ea281e0880e Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Thu, 18 Jun 2020 14:35:46 +0100 Subject: meson: add Solaris support Summary: Add Solaris support for meson Test Plan: test on OpenIndiana Reviewers: raster, bu5hm4n, stefan_schmidt Reviewed By: raster, stefan_schmidt Subscribers: alarcher, stefan_schmidt, bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11973 --- header_checks/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'header_checks') diff --git a/header_checks/meson.build b/header_checks/meson.build index 955c0082f2..c71fdbf216 100644 --- a/header_checks/meson.build +++ b/header_checks/meson.build @@ -88,7 +88,6 @@ function_checks = [ ['getxattr', ['sys/types.h', 'sys/xattr.h']], ['iconv', ['iconv.h']], ['listxattr', ['sys/types.h', 'sys/xattr.h']], - ['mallinfo', ['malloc.h']], ['malloc_info', ['malloc.h']], ['malloc_usable_size', ['malloc.h']], ['mkdirat', ['sys/stat.h']], @@ -114,6 +113,7 @@ function_checks = [ ['dlopen', ['dlfcn.h'], ['dl']], ['dlsym', ['dlfcn.h'], ['dl']], ['lround', ['math.h'], ['m']], + ['mallinfo', ['malloc.h'], ['malloc']], ['shm_open', ['sys/mman.h', 'sys/stat.h', 'fcntl.h'], ['rt']], #from here on we specify arguments ['splice', ['fcntl.h'], [], '-D_GNU_SOURCE=1'], @@ -157,6 +157,11 @@ m = cc.find_library('m') dl = cc.find_library('dl', required: false) rt = cc.find_library('rt', required: false) +if sys_sun == true + malloc = cc.find_library('malloc', required: true) + socket = cc.find_library('socket', required: true) +endif + thread_dep = dependency('threads') #check for the headers -- cgit v1.2.1