LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File feh-makefile_optflags.patch of Package feh (Project X11:Utilities)

---
 config.mk    |    4 ++--
 src/Makefile |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Index: b/config.mk
===================================================================
--- a/config.mk
+++ b/config.mk
@@ -34,8 +34,8 @@
 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
Index: b/src/Makefile
===================================================================
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,7 +7,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