Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 928892
Collapse All | Expand All

(-)a/meson.build (-7 / +7 lines)
Lines 44-57 if get_option('sysprof') Link Here
44
  config_h.set10('HAVE_SYSPROF', true)
44
  config_h.set10('HAVE_SYSPROF', true)
45
endif
45
endif
46
46
47
check_headers = [
47
if cc.has_header('ucontext.h')
48
  'ucontext.h',
48
  if not cc.has_function('makecontext', prefix : '#include<ucontext.h>')
49
]
49
    libucontext_dep = dependency('libucontext')
50
foreach h : check_headers
50
  else
51
  if cc.has_header(h)
51
    libucontext_dep = disabler()
52
    config_h.set('HAVE_' + h.underscorify().to_upper(), 1)
53
  endif
52
  endif
54
endforeach
53
  config_h.set('HAVE_UCONTEXT_H', 1)
54
endif
55
55
56
if host_machine.system() == 'darwin'
56
if host_machine.system() == 'darwin'
57
  # known alignment for darwin where we're using helpers
57
  # known alignment for darwin where we're using helpers
(-)a/src/meson.build (+1 lines)
Lines 95-100 if host_machine.system() != 'windows' Link Here
95
    'dex-unix-signal.c',
95
    'dex-unix-signal.c',
96
    'dex-ucontext.c',
96
    'dex-ucontext.c',
97
  ]
97
  ]
98
  libdex_deps += [libucontext_dep]
98
99
99
  # If we're on Linux and mips we might still need asm.S.
100
  # If we're on Linux and mips we might still need asm.S.
100
  # But otherwise linux can do it all without any custom
101
  # But otherwise linux can do it all without any custom

Return to bug 928892