mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 14:44:11 +02:00
Update code to compile with C23 compilers. Replace build system with meson: existing makefile and patches appear to have silently dropped dependencies, that were automagically included only somewhere. Fixes segfaults on start. Adds smoke test to check for said segfault Closes: https://bugs.gentoo.org/875098 Closes: https://bugs.gentoo.org/456780 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Signed-off-by: Sam James <sam@gentoo.org>
51 lines
897 B
Meson
51 lines
897 B
Meson
project('icclib', 'c', version: '2.14')
|
|
|
|
add_project_arguments('-DUNIX', language: 'c')
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
math = cc.find_library('m', required: false)
|
|
|
|
icclib = library(
|
|
'icc',
|
|
'icc.c',
|
|
soversion: '0',
|
|
dependencies: math,
|
|
install: true,
|
|
)
|
|
|
|
executable(
|
|
'iccdump',
|
|
['iccdump.c', 'iccstd.c'],
|
|
install: true,
|
|
link_with: icclib,
|
|
dependencies: math,
|
|
)
|
|
executable(
|
|
'lutest',
|
|
['lutest.c', 'iccstd.c'],
|
|
install: false,
|
|
link_with: icclib,
|
|
dependencies: math,
|
|
)
|
|
executable(
|
|
'icclu',
|
|
['icclu.c', 'iccstd.c'],
|
|
install: false,
|
|
link_with: icclib,
|
|
dependencies: math,
|
|
)
|
|
executable(
|
|
'iccrw',
|
|
['iccrw.c', 'iccstd.c'],
|
|
install: false,
|
|
link_with: icclib,
|
|
dependencies: math,
|
|
)
|
|
executable(
|
|
'icctest',
|
|
['icctest.c', 'iccstd.c'],
|
|
install: false,
|
|
link_with: icclib,
|
|
dependencies: math,
|
|
)
|