mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
12
meson.build
12
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')
|
||||
|
||||
Reference in New Issue
Block a user