Blob Blame History Raw
diff -uNr spectrwm-2.3.0/linux/Makefile spectrwm-2.3.0.1/linux/Makefile
--- spectrwm-2.3.0/linux/Makefile	2013-04-29 15:55:59.000000000 -0400
+++ spectrwm-2.3.0.1/linux/Makefile	2013-07-28 18:30:15.321080559 -0400
@@ -10,6 +10,7 @@
 CC?= gcc
 
 LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
+MVERS= $(shell . ../lib/shlib_version; echo $$major)
 
 BUILDVERSION= $(shell sh $(CURDIR)/../buildver.sh)
 ifneq ("${BUILDVERSION}", "")
@@ -32,7 +33,7 @@
 	$(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
 
 libswmhack.so.$(LVERS): swm_hack.so
-	$(CC) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
+	$(CC) -Wl,-soname,libswmhack.so.$(MVERS) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
 
 install: all
 	install -m 755 -d $(DESTDIR)$(BINDIR)