mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
Abort compilation early if pkg-config fails
This commit is contained in:
parent
f35d14415d
commit
b821144deb
6
Makefile
6
Makefile
@ -37,7 +37,13 @@ endif
|
||||
PKGCONFIG_LIBS="blkid uuid liburcu libsodium zlib liblz4 libzstd"
|
||||
|
||||
PKGCONFIG_CFLAGS:=$(shell pkg-config --cflags $(PKGCONFIG_LIBS))
|
||||
ifeq (,$(PKGCONFIG_CFLAGS))
|
||||
$(error pkg-config error)
|
||||
endif
|
||||
PKGCONFIG_LDLIBS:=$(shell pkg-config --libs $(PKGCONFIG_LIBS))
|
||||
ifeq (,$(PKGCONFIG_LDLIBS))
|
||||
$(error pkg-config error (libs))
|
||||
endif
|
||||
|
||||
CFLAGS+=$(PKGCONFIG_CFLAGS)
|
||||
LDLIBS+=$(PKGCONFIG_LDLIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user