summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/mkimxboot/Makefile8
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/
10CFLAGS += -I$(IMXTOOLS_DIR) -Wall 10CFLAGS += -I$(IMXTOOLS_DIR) -Wall
11# std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE) 11# std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE)
12CFLAGS += -std=gnu99 -g -O3 12CFLAGS += -std=gnu99 -g -O3
13LDFLAGS += -lcrypto++ 13
14# Distros could use different names for the crypto library. We try a list
15# of candidate names, only one of them should be the valid one.
16PKGCONFIG := $(CROSS)pkg-config
17LIBCRYPTO_NAMES = libcryptopp libcrypto++ cryptopp crypto++
18$(foreach l,$(LIBCRYPTO_NAMES),\
19 $(eval LDOPTS += $(shell $(PKGCONFIG) --silence-errors --libs $(l))))
14 20
15OUTPUT = mkimxboot 21OUTPUT = mkimxboot
16 22