diff options
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/mkimxboot/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/mkimxboot/Makefile b/rbutil/mkimxboot/Makefile index 132c2435f9..b584084811 100644 --- a/rbutil/mkimxboot/Makefile +++ b/rbutil/mkimxboot/Makefile @@ -10,7 +10,13 @@ IMXTOOLS_DIR=../../utils/imxtools/sbtools/ CFLAGS += -I$(IMXTOOLS_DIR) -Wall # std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE) CFLAGS += -std=gnu99 -g -O3 -LDFLAGS += -lcrypto++ + +# Distros could use different names for the crypto library. We try a list +# of candidate names, only one of them should be the valid one. +PKGCONFIG := $(CROSS)pkg-config +LIBCRYPTO_NAMES = libcryptopp libcrypto++ cryptopp crypto++ +$(foreach l,$(LIBCRYPTO_NAMES),\ + $(eval LDOPTS += $(shell $(PKGCONFIG) --silence-errors --libs $(l)))) OUTPUT = mkimxboot |