Enable hardening flags, fix build
authorFederico Ceratto <federico@debian.org>
Sat, 29 Sep 2018 15:30:40 +0000 (16:30 +0100)
committerFederico Ceratto <federico@debian.org>
Sat, 29 Sep 2018 15:30:40 +0000 (16:30 +0100)
Gbp-Pq: Name 0003-harden-and-fix-build

SConstruct

index 5433d383fe99f603a2279313e01314f90fe475d7..edd226f8813ac69587f402d21e26eb89252b31f8 100644 (file)
@@ -177,3 +177,5 @@ env.Append(
 )
 
 env.Program(target='goxel', source=sources)
+env.Append(CFLAGS='-Wformat-security -Werror=format-security -fPIE')
+env.Append(CFLAGS='-Wno-error=format-overflow=')