From 57ffc9c5d3e2ec3cd823b7a096735033ce512079 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 5 May 2017 14:17:43 +1000 Subject: [PATCH] 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 --- meson.build | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/meson.build b/meson.build index 45738e85..5d2097ea 100644 --- a/meson.build +++ b/meson.build @@ -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')