mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
3ef94c2968
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
26 lines
861 B
Diff
26 lines
861 B
Diff
diff -Naur dmenu-4.6-orig/config.mk dmenu-4.6/config.mk
|
|
--- dmenu-4.6-orig/config.mk 2015-11-08 17:42:21.000000000 -0500
|
|
+++ dmenu-4.6/config.mk 2015-11-29 17:13:56.521190400 -0500
|
|
@@ -4,6 +4,7 @@
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
+LIBDIR = /usr/local/lib
|
|
|
|
X11INC = /usr/X11R6/include
|
|
X11LIB = /usr/X11R6/lib
|
|
@@ -20,11 +21,12 @@
|
|
|
|
# includes and libs
|
|
INCS = -I${X11INC} -I${FREETYPEINC}
|
|
-LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
|
|
+LIBS = -L${LIBDIR} -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
|
|
|
|
# flags
|
|
+OPTS ?= -Os
|
|
CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
|
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
|
+CFLAGS = -std=c99 -pedantic -Wall ${OPTS} ${INCS} ${CPPFLAGS}
|
|
LDFLAGS = -s ${LIBS}
|
|
|
|
# compiler and linker
|