forked from len0rd/rockbox
mkimxboot: fix compilation issues with crypto lib
Change-Id: Ic81583dc7e872d332cbd4fd87143579cceeda484
This commit is contained in:
parent
fbbba9292b
commit
d6452729e3
1 changed files with 7 additions and 1 deletions
|
@ -10,7 +10,13 @@ IMXTOOLS_DIR=../../utils/imxtools/sbtools/
|
||||||
CFLAGS += -I$(IMXTOOLS_DIR) -Wall
|
CFLAGS += -I$(IMXTOOLS_DIR) -Wall
|
||||||
# std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE)
|
# std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE)
|
||||||
CFLAGS += -std=gnu99 -g -O3
|
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
|
OUTPUT = mkimxboot
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue