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(-)

--- a/config.mk
+++ b/config.mk
@@ -15,8 +15,8 @@ example_dir = ${main_dir}/share/doc/feh/
 desktop_dir = ${main_dir}/share/applications
 
 # default CFLAGS
-CFLAGS ?= -g -O2
-CFLAGS += -Wall -Wextra -pedantic
+OPTFLAGS = -g -O2
+CFLAGS += -Wall -Wextra -pedantic $(OPTFLAGS)
 
 cam ?= 0
 curl ?= 1
--- 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