Skip to content

Commit

Permalink
CMakeLists.txt: Fix incorrect _FORTIFY_SOURCE macro (#96)
Browse files Browse the repository at this point in the history
The fortify source mitigation is set by the _FORTIFY_SOURCE macro set along with the same optimization level. We used a `-DFORTIFY_SOURCE=0` which is invalid and should be `-D_FORTIFY_SOURCE=0` instead.

To be honest, we could even remove this flag as well, but I think it is fine to leave it, but it should be spelled correctly then :).
  • Loading branch information
disconnect3d committed Dec 27, 2022
1 parent 6e00ce8 commit 810d7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ endif()

add_definitions(
-Derrno=__cgc_errno
-DFORTIFY_SOURCE=0
-D_FORTIFY_SOURCE=0
)

if(LINUX)
Expand Down

0 comments on commit 810d7b2

Please sign in to comment.