LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

diff -urN a/config.mk b/config.mk
--- a/config.mk	2013-02-14 11:53:26.000000000 +0000
+++ b/config.mk	2013-02-19 18:43:57.526158503 +0000
@@ -15,8 +15,8 @@
 desktop_dir = ${main_dir}/share/applications
 
 # default CFLAGS
-CFLAGS ?= -g -O2
-CFLAGS += -Wall -Wextra -pedantic
+OPTFLAGS = -g -O2
+CFLAGS += -Wall -Wextra -pedantic $(OPTFLAGS)
 
 curl ?= 1
 debug ?= 0
diff -urN a/src/Makefile b/src/Makefile
--- a/src/Makefile	2013-02-14 11:53:26.000000000 +0000
+++ b/src/Makefile	2013-02-19 18:43:14.437873267 +0000
@@ -7,7 +7,7 @@
 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