diff --git a/config.mk b/config.mk
index 92a5e63..40b8df9 100644
--- a/config.mk
+++ b/config.mk
@@ -19,8 +19,8 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
# flags
CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
+CFLAGS = -std=c99 -pedantic -Wall -Os ${RPM_OPT_FLAGS} ${INCS} ${CPPFLAGS}
+LDFLAGS = ${LIBS}
# compiler and linker
CC = cc