diff --git a/config.mk b/config.mk
index 03f1670..42e60d8 100644
--- a/config.mk
+++ b/config.mk
@@ -18,8 +18,8 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
# flags
CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-CFLAGS = -ansi -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