_FORTIFY_SOURCE, not FORTIFY_SOURCE, thanks Fedora!

This commit is contained in:
nick black 2021-07-01 05:35:31 -04:00
parent ef2e4e626e
commit b4fb4ee20a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -68,7 +68,7 @@ set(PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig")
endif()
# global compiler flags
add_compile_definitions(FORTIFY_SOURCE=2)
add_compile_definitions(_FORTIFY_SOURCE=2)
add_compile_options(-Wall -Wextra -W -Wshadow -Wformat -Wno-nonnull-compare
-Wformat-security -fexceptions -fstrict-aliasing
-Wno-string-plus-int)