Skip to content

Commit

Permalink
make: Adding b_pie=true
Browse files Browse the repository at this point in the history
Setting pie (position independent executables) on by default in meson project settings.
This is recommended for security/hardening by openssf, so makes sense to turn it on in here as well.

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed May 1, 2024
1 parent da71d1d commit 198d419
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# SPDX-License-Identifier: MPL-2.0
project('openSeaChest', 'c', license: 'MPL-2.0', default_options : ['warning_level=2'])
project('openSeaChest', 'c', license: 'MPL-2.0', default_options : ['warning_level=2', 'b_pie=true'])

c = meson.get_compiler('c')


warning_flags = [ ]
linker_flags = [ ] #additional linker flags to add per-compiler for hardening.

Expand Down

0 comments on commit 198d419

Please sign in to comment.