From 82a46da2782251648167bf921045db0fd8ba9ca8 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 11 Jun 2020 20:11:28 +0200 Subject: [PATCH] Don't add '-Imbedtls/include' to the CFLAGS when not building with mbedTLS Sponsored by: Robert Klemme --- GNUmakefile.in | 1 - configure.in | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index 92ef0a16..40b5706b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -280,7 +280,6 @@ SPECIAL_CFLAGS = @SPECIAL_CFLAGS@ OTHER_CFLAGS = CFLAGS = @CFLAGS@ @CPPFLAGS@ $(OTHER_CFLAGS) $(SPECIAL_CFLAGS) -Wall \ - -Imbedtls/include \ @STATIC_PCRE_ONLY@ -Ipcre LDFLAGS = @LDFLAGS@ $(DEBUG_CFLAGS) $(SPECIAL_CFLAGS) diff --git a/configure.in b/configure.in index 3bc17e00..929f9f08 100644 --- a/configure.in +++ b/configure.in @@ -1154,6 +1154,7 @@ if test X"$OPT_MBEDTLS" != Xno; then AC_MSG_NOTICE([Detected mbedTLS. Enabling https inspection.]) LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" + old_CFLAGS_nospecial="-Imbedtls/include $old_CFLAGS_nospecial" FEATURE_HTTPS_INSPECTION_ONLY= fi -- 2.39.2