diff options
Diffstat (limited to 'project/config/cfgdefs.sh')
-rw-r--r-- | project/config/cfgdefs.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index a818f0c..1790aab 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -64,6 +64,15 @@ $mb_cfgdefs_cc $mb_cfgdefs_cflags -E -xc - \ printf 'CFLAGS_CONFIG\t\t+= -DHAVE_NO_STROPTS_H\n' \ >> $mb_pwd/cfgdefs.mk +# openssl 1.1 or newer or a compatible libressl +printf 'void * addr = &X509_NAME_ENTRY_set;' \ + | $mb_cfgdefs_cc $mb_cfgdefs_cflags \ + --include=openssl/x509.h -S -xc - -o - \ + > /dev/null 2>/dev/null && \ + printf 'CFLAGS_CONFIG\t\t+= -DOPENSSL_VERSION_1_1\n' \ + >> $mb_pwd/cfgdefs.mk + + # system tests: (native) pycompile printf '\n\n#system tests: (native) pycompile\n' >> $mb_pwd/cfgdefs.mk |