Skip to content

Commit

Permalink
secsipid: Makefile - detect of pkg-config knows about libsecsipid
Browse files Browse the repository at this point in the history
(cherry picked from commit 664542a)
  • Loading branch information
miconda authored and linuxmaniac committed Jan 11, 2021
1 parent b0a629e commit b7cff8d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/modules/secsipid/Makefile
Expand Up @@ -7,7 +7,16 @@ include ../../Makefile.defs
auto_gen=
NAME=secsipid.so

BUILDER = $(shell which pkg-config)
ifeq ($(CROSS_COMPILE),)
BUILDER = $(shell which pkg-config)
ifneq ($(BUILDER),)
PKGLIBSECSIPID = $(shell $(BUILDER) --exists secsipid-1 > /dev/null 2>&1 ; echo $$? )
ifneq ($(PKGLIBSECSIPID),0)
BUILDER =
endif
endif
endif

ifeq ($(BUILDER),)
DEFS+= -I.
LIBS = -L. -lsecsipid
Expand Down

0 comments on commit b7cff8d

Please sign in to comment.