1 From: Helmut Grohne <helmut@subdivi.de>
2 Date: Tue, 21 Nov 2017 21:20:20 +0100
3 Subject: fix using target-architecture pkg-config
6 Makefile | 13 +++++++------
7 1 file changed, 7 insertions(+), 6 deletions(-)
9 diff --git a/Makefile b/Makefile
10 index 11f2836..bd963ca 100644
14 # DESTDIR is completely respected
17 +PKG_CONFIG ?= pkg-config
18 CFLAGS := -Wall -pthread $(CFLAGS) $(CPPFLAGS)
19 XLDFLAGS := $(LDFLAGS)
20 LDFLAGS := -L. -lossp -pthread $(LDFLAGS)
21 @@ -11,27 +12,27 @@ UDEVDIR := /etc/udev/rules.d
22 SLAVESDIR := $(prefix)/sbin
24 ifeq "$(origin OSSPD_CFLAGS)" "undefined"
25 -OSSPD_CFLAGS := $(shell pkg-config --cflags fuse)
26 +OSSPD_CFLAGS := $(shell $(PKG_CONFIG) --cflags fuse)
29 ifeq "$(origin OSSPD_LDFLAGS)" "undefined"
30 -OSSPD_LDFLAGS := $(shell pkg-config --libs fuse)
31 +OSSPD_LDFLAGS := $(shell $(PKG_CONFIG) --libs fuse)
34 ifeq "$(origin OSSP_PADSP_CFLAGS)" "undefined"
35 -OSSP_PADSP_CFLAGS := $(shell pkg-config --cflags libpulse)
36 +OSSP_PADSP_CFLAGS := $(shell $(PKG_CONFIG) --cflags libpulse)
39 ifeq "$(origin OSSP_PADSP_LDFLAGS)" "undefined"
40 -OSSP_PADSP_LDFLAGS := $(shell pkg-config --libs libpulse)
41 +OSSP_PADSP_LDFLAGS := $(shell $(PKG_CONFIG) --libs libpulse)
44 ifeq "$(origin OSSP_ALSAP_CFLAGS)" "undefined"
45 -OSSP_ALSAP_CFLAGS := $(shell pkg-config --libs alsa)
46 +OSSP_ALSAP_CFLAGS := $(shell $(PKG_CONFIG) --libs alsa)
49 ifeq "$(origin OSSP_ALSAP_LDFLAGS)" "undefined"
50 -OSSP_ALSAP_LDFLAGS := $(shell pkg-config --libs alsa)
51 +OSSP_ALSAP_LDFLAGS := $(shell $(PKG_CONFIG) --libs alsa)
54 headers := ossp.h ossp-util.h ossp-slave.h