Enable hardening flags, fix build
authorFederico Ceratto <federico@debian.org>
Sat, 8 May 2021 11:42:41 +0000 (12:42 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 8 May 2021 11:42:41 +0000 (12:42 +0100)
Gbp-Pq: Name 0003-harden-and-fix-build

SConstruct

index 288e5fe1dc82771dff4ffaf1315a66453f080416..2ee992c21b0d760a89e522cca98b173ed44301bd 100644 (file)
@@ -130,3 +130,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=')