comparison mupdf-source/Makerules @ 34:da085c7f52c6

FIX: In Makerules: check for empty EXTRA_CHECKS also before applying them
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 21 Sep 2025 18:09:12 +0200
parents c4daa0c83d64
children
comparison
equal deleted inserted replaced
33:c4daa0c83d64 34:da085c7f52c6
103 ifeq ($(findstring -fembed-bitcode,$(XCFLAGS)),) 103 ifeq ($(findstring -fembed-bitcode,$(XCFLAGS)),)
104 # clang does not support these in combination with -fembed-bitcode 104 # clang does not support these in combination with -fembed-bitcode
105 CFLAGS += -ffunction-sections -fdata-sections 105 CFLAGS += -ffunction-sections -fdata-sections
106 endif 106 endif
107 107
108 ifneq ($(EXTRA_CHECKS),0) 108 ifneq ($(EXTRA_CHECKS),)
109 CFLAGS += -fno-delete-null-pointer-checks 109 ifneq ($(EXTRA_CHECKS),0)
110 CFLAGS += -Werror=implicit-function-declaration 110 CFLAGS += -fno-delete-null-pointer-checks
111 CFLAGS += -fstack-clash-protection 111 CFLAGS += -Werror=implicit-function-declaration
112 CFLAGS += -fstack-protector-strong 112 CFLAGS += -fstack-clash-protection
113 CFLAGS += -fstack-protector-strong
114 endif
113 endif 115 endif
114 116
115 ifeq ($(OS),Darwin) 117 ifeq ($(OS),Darwin)
116 LDREMOVEUNREACH := -Wl,-dead_strip 118 LDREMOVEUNREACH := -Wl,-dead_strip
117 SO := dylib 119 SO := dylib