meson.build: add -D_GNU_SOURCE to the project arguments

This appends it to every compilation command so we can get rid of the c_args
for (almost all) executables.
This commit is contained in:
Peter Hutterer 2021-06-08 20:21:24 +10:00 committed by Wim Taymans
parent fee4d0eae1
commit 0054319d88
17 changed files with 5 additions and 42 deletions

View file

@ -8,7 +8,6 @@ spa_support_sources = ['cpu.c',
spa_support_lib = shared_library('spa-support',
spa_support_sources,
c_args : [ '-D_GNU_SOURCE' ],
include_directories : [ spa_inc ],
dependencies : [ pthread_lib, epoll_shim_dep ],
install : true,
@ -25,7 +24,6 @@ if not get_option('evl').disabled()
spa_evl_lib = shared_library('spa-evl',
spa_evl_sources,
c_args : [ '-D_GNU_SOURCE' ],
include_directories : [ spa_inc, evl_inc],
dependencies : [ pthread_lib, evl_lib],
install : true,