File feh-makefile_optflags.patch of Package feh
Index: feh-3.9/config.mk
===================================================================
--- feh-3.9.orig/config.mk
+++ feh-3.9/config.mk
@@ -36,8 +36,8 @@ icon_dir = ${ICON_PREFIX}/hicolor
scalable_icon_dir = ${icon_dir}/scalable/apps
# default CFLAGS
-CFLAGS ?= -g -O2
-CFLAGS += -Wall -Wextra -pedantic
+OPTFLAGS = -g -O2
+CFLAGS += -Wall -Wextra -pedantic $(OPTFLAGS)
# Settings for glibc >= 2.19 - may need to be adjusted for other systems
CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_DARWIN_C_SOURCE
Index: feh-3.9/src/Makefile
===================================================================
--- feh-3.9.orig/src/Makefile
+++ feh-3.9/src/Makefile
@@ -42,7 +42,7 @@ I_SRCS = ${shell echo *.raw}
I_DSTS = ${I_SRCS:.raw=.inc}
feh: deps.mk ${OBJECTS} ${I_DSTS}
- ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS}
+ @${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS}
include deps.mk