Add CROSSCOMPILE to mdgrep, then use it to stop CRASHREPORT when cross-compiling

This commit is contained in:
nhkeni
2024-02-15 19:37:43 -05:00
parent e378b782fc
commit c02220499b
3 changed files with 11 additions and 5 deletions

View File

@@ -111,8 +111,9 @@ endif #MAKEFILE_SRC
endif #USE_CURSESLIB
# autodetect missing openssl header needed for CRASHREPORT
CROK=$(shell ls /usr/include/openssl/md4.h 2>/dev/null | wc -l )
ifeq "$(CROK)" "1"
CRI=$(shell ls /usr/include/openssl/md4.h 2>/dev/null | wc -l )
CRC=$(shell (../util/makedefs --grep-defined CROSSCOMPILE && echo 1 ) || echo 0)
ifeq "$(CRI)$(CRC)" "10"
AUTOLIBS=$(shell (../util/makedefs --grep-defined CRASHREPORT && echo "-lcrypto" ) || true )
else
NHCFLAGS+=-DNOCRASHREPORT