summaryrefslogtreecommitdiff
path: root/desktop/dmenu/dmenu-4.5-libdir_cflags_fixups.diff
diff options
context:
space:
mode:
authorPhillip Warner <pc_warner@yahoo.com>2012-03-29 23:29:28 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-03-29 23:29:28 -0400
commitd4b2562673274537be82c2257b8487d4a833ef9c (patch)
treef7f85673fc55cba10e31082262aa62ec6a613d09 /desktop/dmenu/dmenu-4.5-libdir_cflags_fixups.diff
parent996b93df623c097b7cce0dbb321a32b8a0ec0101 (diff)
downloadslackbuilds-d4b2562673274537be82c2257b8487d4a833ef9c.tar.gz
desktop/dmenu: Updated for version 4.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/dmenu/dmenu-4.5-libdir_cflags_fixups.diff')
-rw-r--r--desktop/dmenu/dmenu-4.5-libdir_cflags_fixups.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/desktop/dmenu/dmenu-4.5-libdir_cflags_fixups.diff b/desktop/dmenu/dmenu-4.5-libdir_cflags_fixups.diff
new file mode 100644
index 0000000000..b65edb6686
--- /dev/null
+++ b/desktop/dmenu/dmenu-4.5-libdir_cflags_fixups.diff
@@ -0,0 +1,27 @@
+diff -Naur dmenu-4.5-orig/config.mk dmenu-4.5/config.mk
+--- dmenu-4.5-orig/config.mk 2012-01-08 07:18:43.000000000 -0500
++++ dmenu-4.5/config.mk 2012-03-03 13:13:44.000000000 -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
+@@ -14,12 +15,13 @@
+
+ # includes and libs
+ INCS = -I${X11INC}
+-LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
++LIBS = -L${LIBDIR} -L${X11LIB} -lX11 ${XINERAMALIBS}
+
+ # flags
++OPTS ?= -Os
+ 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}
++CFLAGS = -std=c99 -pedantic -Wall ${OPTS} ${INCS} ${CPPFLAGS}
+ LDFLAGS = -s ${LIBS}
+
+ # compiler and linker