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.
This commit is contained in:
parent
cdd7c69452
commit
053c6eda24
|
@ -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)
|
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)
|
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
|
OBJS = wmauda.o
|
||||||
HEADERS = config.h dock-master.xpm
|
HEADERS = config.h dock-master.xpm
|
||||||
|
|
Loading…
Reference in a new issue