diff mupdf-source/Makerules @ 31:baeb8bdeff3a

Fortify sources using _FORTIFY_SOURCE=3 and also apply -fno-delete-null-pointer-checks. See: https://github.com/ossf/wg-best-practices-os-developers/issues/659.
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 21 Sep 2025 13:11:30 +0200
parents 59f1bd90b2a0
children 72c1b70d4f5c
line wrap: on
line diff
--- a/mupdf-source/Makerules	Fri Sep 19 19:59:44 2025 +0200
+++ b/mupdf-source/Makerules	Sun Sep 21 13:11:30 2025 +0200
@@ -105,6 +105,10 @@
   CFLAGS += -ffunction-sections -fdata-sections
 endif
 
+ifneq ($(EXTRA_CHECKS),0)
+  CFLAGS += -fno-delete-null-pointer-checks
+endif
+
 ifeq ($(OS),Darwin)
   LDREMOVEUNREACH := -Wl,-dead_strip
   SO := dylib