add brightnessctl
[slackbuilds.git] / dmenu / dmenu-4.9-libdir_cflags_fixups.diff
blob8618a911dea1f3e89054b57741fed47be379ba1b
1 --- dmenu-4.9-orig/config.mk 2019-02-02 05:55:02.000000000 -0700
2 +++ dmenu-4.9/config.mk 2020-04-19 13:12:15.427727907 -0600
3 @@ -4,6 +4,7 @@
4 # paths
5 PREFIX = /usr/local
6 MANPREFIX = $(PREFIX)/share/man
7 +LIBDIR = /usr/local/lib
9 X11INC = /usr/X11R6/include
10 X11LIB = /usr/X11R6/lib
11 @@ -20,11 +21,12 @@
13 # includes and libs
14 INCS = -I$(X11INC) -I$(FREETYPEINC)
15 -LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
16 +LIBS = -L$(LIBDIR) -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
18 # flags
19 +OPTS ?= -Os
20 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
21 -CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
22 +CFLAGS = -std=c99 -pedantic -Wall $(OPTS) $(INCS) $(CPPFLAGS)
23 LDFLAGS = $(LIBS)
25 # compiler and linker