]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: never define CURL_CA_BUNDLE with a getenv
authorDaniel Stenberg <daniel@haxx.se>
Sun, 5 Apr 2020 09:19:39 +0000 (11:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 5 Apr 2020 21:59:20 +0000 (23:59 +0200)
- it breaks the build (since 6de756c9b1de34b7a1)
- it's not documented and not consistent across platforms
- the curl tool does that getenv magic

Bug: https://github.com/curl/curl/commit/6de756c#r38127030
Reported-by: Gisle Vanem
Closes #5187

lib/Makefile.netware
lib/config-dos.h

index 752d3d6fba7ad97cfb897764c015d64f466b9675..2c16adbac9bd0430aa36c22876a53a2d47ad6a12 100644 (file)
@@ -669,8 +669,6 @@ endif
        @echo $(DL)#endif$(DL) >> $@
 ifdef CABUNDLE
        @echo $(DL)#define CURL_CA_BUNDLE "$(CABUNDLE)"$(DL) >> $@
-else
-       @echo $(DL)#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")$(DL) >> $@
 endif
 
 $(EXPORTF): $(CURL_INC)/curl/curl.h $(CURL_INC)/curl/easy.h $(CURL_INC)/curl/multi.h $(CURL_INC)/curl/mprintf.h
index aa83c4be55c00ed081f35615f459a0dc18d155d4..349e7563959c487e855d74056acef554dfbe51e3 100644 (file)
   #define ssize_t  int
 #endif
 
-#define CURL_CA_BUNDLE  getenv("CURL_CA_BUNDLE")
-
 /* Target HAVE_x section */
 
 #if defined(DJGPP)