summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch')
-rw-r--r--x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch b/x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch
new file mode 100644
index 000000000000..57c7fdee6050
--- /dev/null
+++ b/x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch
@@ -0,0 +1,34 @@
+--- scrotwm-0.9.28/linux/Makefile
++++ scrotwm-0.9.28/linux/Makefile
+@@ -1,7 +1,7 @@
+ # $scrotwm: Makefile,v 1.5 2010/09/16 02:00:51 marco Exp $
+
+-CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I.
+-CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\"
++CFLAGS+= -D_GNU_SOURCE -I.
++CFLAGS+= -DSWM_LIB=\"libswmhack.so.$(LVERS)\"
+ LDADD+= -lX11 -lXrandr
+
+ PREFIX?= /usr/local
+@@ -9,7 +9,7 @@
+ LIBDIR?= $(PREFIX)/lib
+ MANDIR?= $(PREFIX)/share/man
+
+-CC= gcc
++CC?= gcc
+
+ LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
+
+@@ -25,10 +25,10 @@
+ $(CC) $(LDFLAGS) -o $@ $+ $(LDADD)
+
+ %.so: %.c
+- $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
++ $(CC) $(LDFLAGS) $(CFLAGS) -c -fpic $+ -o $@
+
+ libswmhack.so.$(LVERS): swm_hack.so
+- $(CC) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
++ $(CC) $(LDFLAGS) -Wl,-soname,$@ -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
+
+ install: all
+ install -m 755 -d $(DESTDIR)$(BINDIR)