From 053c6eda24c5862333a06f78b7d5c553c7b6f129 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sun, 12 Feb 2012 18:09:44 +0000 Subject: [PATCH] wmauda: Fix compilation error On my openSUSE 12.1 I get this: /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: wmauda.o: undefined reference to symbol 'XSetWMHints' /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'XSetWMHints' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line /usr/lib64/libX11.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status Fix it by adding -lX11 in LIBS. --- wmauda-0.8/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmauda-0.8/Makefile b/wmauda-0.8/Makefile index 5958f1b..b8586db 100644 --- a/wmauda-0.8/Makefile +++ b/wmauda-0.8/Makefile @@ -11,7 +11,7 @@ CFLAGS += $(shell pkg-config audacious --cflags) $(shell pkg-config dbus-1 --cf LIBS := $(shell pkg-config audacious --libs) $(shell pkg-config audclient --libs) $(shell pkg-config dbus-1 --libs) CFLAGS += $(shell pkg-config gtk+-2.0 --cflags) -LIBS += $(shell pkg-config gtk+-2.0 --libs) +LIBS += $(shell pkg-config gtk+-2.0 --libs) -lX11 OBJS = wmauda.o HEADERS = config.h dock-master.xpm -- 2.11.4.GIT