meson: drop a bunch of compiler flags

These all affect the final executable and should be under the control of the
distro.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-05-05 14:17:43 +10:00
parent a2b858008f
commit 57ffc9c5d3

View File

@@ -9,7 +9,6 @@ ratbagd_version = meson.project_version().split('.')
# Compiler setup
cc = meson.get_compiler('c')
cflags = [
'-pipe',
'-Wno-inline',
'-Wundef',
'-Wformat=2',
@@ -40,17 +39,6 @@ cflags = [
'-Werror=overflow',
'-Wdate-time',
'-Wnested-externs',
'-ffast-math',
'-fno-common',
'-fdiagnostics-show-option',
'-fno-strict-aliasing',
'-fvisibility=hidden',
'-ffunction-sections',
'-fdata-sections',
'-fstack-protector',
'-fstack-protector-strong',
'-fPIE',
'--param=ssp-buffer-size=4'
]
add_project_arguments(cflags, language: 'c')
add_project_arguments('-D_GNU_SOURCE', language : 'c')