File 0003-fix-variable-expansion.patch of Package u2f-utils

From 02ac3976baf4c0f85871cc201c211267b44e202d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <darix@nordisch.org>
Date: Mon, 19 Jan 2015 15:51:36 +0100
Subject: [PATCH 3/5] fix variable expansion

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 42d6f82..be068f1 100644
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,8 @@ CFLAGS+=-fPIC -c -O2 $(OPTFLAGS)
 ifeq ($(UNAME), Linux)
 LDFLAGS+=-Wl,-soname=pam_fido-u2f.so
 
-HIDAPI_LIBS="$(pkg-config --libs hidapi-libusb hidapi-hidraw)"
-HIDAPI_CFLAGS="$(pkg-config --cflags hidapi-libusb hidapi-hidraw)"
+HIDAPI_LIBS=$(shell pkg-config --libs hidapi-libusb hidapi-hidraw)
+HIDAPI_CFLAGS=$(shell pkg-config --cflags hidapi-libusb hidapi-hidraw)
 CFLAGS+=-Wall
 CFLAGS+=$(HIDAPI_CFLAGS) -D__OS_LINUX
 
-- 
2.1.2

openSUSE Build Service is sponsored by