Make vuln.c compiling & running on debian bullseye.

This commit is contained in:
Johannes Maier
2024-01-12 01:32:35 +01:00
parent cd077bd814
commit 7f74e2934c
2 changed files with 5 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.27)
cmake_minimum_required(VERSION 3.18)
project(project C)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_FLAGS "-Wall -Werror -g -fstack-protector -z noexecstack -z relro -z now -pie -fPIE -Wl,-z,relro,-z,now")
set(CMAKE_C_FLAGS "-Wall -Werror -g -fstack-protector -fshort-enums -z noexecstack -z relro -z now -pie -fPIE -Wl,-z,relro,-z,now")
add_executable(vuln vuln.c)