Browse code

secsipid: Makefile - detect of pkg-config knows about libsecsipid

(cherry picked from commit 664542adf42a4d829ddf9b9e482aba81f30883d8)

Daniel-Constantin Mierla authored on 07/01/2021 16:34:36 • Victor Seva committed on 11/01/2021 08:48:46
Showing 1 changed files
... ...
@@ -7,7 +7,16 @@ include ../../Makefile.defs
7 7
 auto_gen=
8 8
 NAME=secsipid.so
9 9
 
10
-BUILDER = $(shell which pkg-config)
10
+ifeq ($(CROSS_COMPILE),)
11
+	BUILDER = $(shell which pkg-config)
12
+ifneq ($(BUILDER),)
13
+	PKGLIBSECSIPID = $(shell $(BUILDER) --exists secsipid-1 > /dev/null 2>&1 ; echo $$? )
14
+ifneq ($(PKGLIBSECSIPID),0)
15
+	BUILDER =
16
+endif
17
+endif
18
+endif
19
+
11 20
 ifeq ($(BUILDER),)
12 21
 	DEFS+= -I.
13 22
 	LIBS = -L. -lsecsipid