libqrexec-utils: fix linker options

Fix linking with libvchan. Previously it worked because all the users
were also linked with libvchan.
pull/1/head
Marek Marczykowski-Górecki 9 years ago
parent a30d583249
commit 632522b35e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -3,6 +3,7 @@ CFLAGS+=-I. -g -O2 -Wall -Wextra -Werror -pie -fPIC `pkg-config --cflags vchan-$
COMMONIOALL=ioall.o
SO_VER=1
LDFLAGS=-shared
VCHANLIBS = `pkg-config --libs vchan-$(BACKEND_VMM)`
_XENSTORE_H=$(shell ls /usr/include/xenstore.h)
ifneq "$(_XENSTORE_H)" ""
@ -12,7 +13,7 @@ endif
all: libqrexec-utils.so.$(SO_VER) libqubes-rpc-filecopy.so.$(SO_VER)
libqrexec-utils.so.$(SO_VER): unix-server.o ioall.o buffer.o exec.o txrx-vchan.o
$(CC) $(LDFLAGS) -Wl,-soname,$@ -o $@ $^ $(XENLIBS)
$(CC) $(LDFLAGS) -Wl,-soname,$@ -o $@ $^ $(VCHANLIBS)
libqubes-rpc-filecopy.so.$(SO_VER): ioall.o copy-file.o crc32.o unpack.o
$(CC) $(LDFLAGS) -Wl,-soname,$@ -o $@ $^

Loading…
Cancel
Save