From 632522b35eb756a75bbf97a3945be6100402925a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 24 Oct 2015 20:21:11 +0200 Subject: [PATCH] libqrexec-utils: fix linker options Fix linking with libvchan. Previously it worked because all the users were also linked with libvchan. --- qrexec-lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrexec-lib/Makefile b/qrexec-lib/Makefile index 5a10a11..0bc5189 100644 --- a/qrexec-lib/Makefile +++ b/qrexec-lib/Makefile @@ -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 $@ $^