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: feh-2.17.1/config.mk
===================================================================
--- feh-2.17.1.orig/config.mk
+++ feh-2.17.1/config.mk
@@ -31,8 +31,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)
 
 ifeq (${curl},1)
 	CFLAGS += -DHAVE_LIBCURL
Index: feh-2.17.1/src/Makefile
===================================================================
--- feh-2.17.1.orig/src/Makefile
+++ feh-2.17.1/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