summaryrefslogtreecommitdiff
path: root/wm/spectrwm/patches/patch-linux_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'wm/spectrwm/patches/patch-linux_Makefile')
-rw-r--r--wm/spectrwm/patches/patch-linux_Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/wm/spectrwm/patches/patch-linux_Makefile b/wm/spectrwm/patches/patch-linux_Makefile
index a258610034a..e2533362fe7 100644
--- a/wm/spectrwm/patches/patch-linux_Makefile
+++ b/wm/spectrwm/patches/patch-linux_Makefile
@@ -1,15 +1,13 @@
-$NetBSD: patch-linux_Makefile,v 1.1 2013/07/26 17:55:37 wiz Exp $
+$NetBSD: patch-linux_Makefile,v 1.2 2013/11/29 23:30:47 wiz Exp $
-Add rpath.
+Find installed library.
---- linux/Makefile.orig 2013-03-23 14:04:01.000000000 +0000
-+++ linux/Makefile
-@@ -32,7 +32,7 @@ spectrwm: spectrwm.o linux.o
- $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
+--- linux/Makefile.orig 2013-11-24 00:09:06.031887162 -0600
++++ linux/Makefile 2013-11-24 00:09:46.706760816 -0600
+@@ -1,5 +1,5 @@
+ CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
+-CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"libswmhack.so.$(LVERS)\"
++CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\"
+ LDADD+= -lX11 -lX11-xcb -lxcb -lxcb-icccm -lxcb-randr -lxcb-keysyms -lxcb-util -lxcb-xtest -lXft -lXcursor
- libswmhack.so.$(LVERS): swm_hack.so
-- $(CC) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
-+ $(CC) $(LDFLAGS) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
-
- install: all
- install -m 755 -d $(DESTDIR)$(BINDIR)
+ PREFIX?= /usr/local