summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-04-04 13:21:03 +0200
committerMartin Liska <mliska@suse.cz>2022-04-04 13:21:03 +0200
commit8110301ebb44bb30ca5afecc4c8a2b3b383a3622 (patch)
tree06dc603dfe81c0ead894b093b7353395e8eca3c9
parentb249514394da571dfce4f007d6720ee5415709bd (diff)
Use -D_FORTIFY_SOURCE instead of -Wp,-D_FORTIFY_SOURCE.
Do not use -Wp as one can't then easily overwrite the macro with: -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 25c985b..6ed4dc1 100644
--- a/meson.build
+++ b/meson.build
@@ -15,7 +15,7 @@ cc_flags = [
'--param=ssp-buffer-size=4',
]
if host_machine.system() != 'windows'
- cc_flags += [ '-Wp,-D_FORTIFY_SOURCE=2' ]
+ cc_flags += [ '-D_FORTIFY_SOURCE=2' ]
if not get_option('stack_protector').disabled()
cc_flags += [ '-fstack-protector' ]
endif