Merge branch 'link-to-the-ssp-static-library-when-fortify-source-is-enabled' into 'master'

Link to -lssp when enabling _FORTIFY_SOURCE

See merge request cairo/cairo!331
This commit is contained in:
Emmanuele Bassi 2022-06-10 14:55:03 +00:00
commit b5d2395a5f

View file

@ -69,7 +69,7 @@ if cc.get_id() != 'msvc'
]
if get_option('optimization') in ['1', '2', '3']
cflags += '-Wp,-D_FORTIFY_SOURCE=2'
cflags += '-Wp,-D_FORTIFY_SOURCE=2 -Wl,-lssp'
endif
supported_cflags = cc.get_supported_arguments(cflags)