src makefile: Fix the --static flag passed to pkg-config

This commit is contained in:
Frank LENORMAND 2018-02-22 15:56:14 +03:00
parent 35d68d2f82
commit 01c1b4fd69

View File

@ -27,7 +27,7 @@ deps := $(addprefix ., $(sources:.cc=$(suffix).d))
PKG_CONFIG ?= $(shell command -v pkg-config 2>/dev/null)
ifeq ($(static),yes)
PKG_CONFIG_FLAGS += -static
PKG_CONFIG_FLAGS += --static
LDFLAGS += -static -pthread
endif