@@ -115,6 +115,10 @@ all::
115115#
116116# Define NEEDS_SSL_WITH_CRYPTO if you need -lssl when using -lcrypto (Darwin).
117117#
118+ # Define NEEDS_SSL_WITH_CURL if you need -lssl with -lcurl (Minix).
119+ #
120+ # Define NEEDS_IDN_WITH_CURL if you need -lidn when using -lcurl (Minix).
121+ #
118122# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
119123#
120124# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
@@ -1149,6 +1153,20 @@ ifeq ($(uname_S),Interix)
11491153 NO_FNMATCH_CASEFOLD = YesPlease
11501154 endif
11511155endif
1156+ ifeq ($(uname_S ) ,Minix)
1157+ NO_IPV6 = YesPlease
1158+ NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
1159+ NO_NSEC = YesPlease
1160+ NEEDS_LIBGEN =
1161+ NEEDS_CRYPTO_WITH_SSL = YesPlease
1162+ NEEDS_IDN_WITH_CURL = YesPlease
1163+ NEEDS_SSL_WITH_CURL = YesPlease
1164+ NEEDS_RESOLV =
1165+ NO_HSTRERROR = YesPlease
1166+ NO_MMAP = YesPlease
1167+ NO_CURL =
1168+ NO_EXPAT =
1169+ endif
11521170ifneq (,$(findstring MINGW,$(uname_S ) ) )
11531171 pathsep = ;
11541172 NO_PREAD = YesPlease
@@ -1293,6 +1311,16 @@ else
12931311 else
12941312 CURL_LIBCURL = -lcurl
12951313 endif
1314+ ifdef NEEDS_SSL_WITH_CURL
1315+ CURL_LIBCURL += -lssl
1316+ ifdef NEEDS_CRYPTO_WITH_SSL
1317+ CURL_LIBCURL += -lcrypto
1318+ endif
1319+ endif
1320+ ifdef NEEDS_IDN_WITH_CURL
1321+ CURL_LIBCURL += -lidn
1322+ endif
1323+
12961324 REMOTE_CURL_PRIMARY = git-remote-http$X
12971325 REMOTE_CURL_ALIASES = git-remote-https$X git-remote-ftp$X git-remote-ftps$X
12981326 REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
@@ -1329,7 +1357,7 @@ ifndef NO_OPENSSL
13291357 OPENSSL_LINK =
13301358 endif
13311359 ifdef NEEDS_CRYPTO_WITH_SSL
1332- OPENSSL_LINK += -lcrypto
1360+ OPENSSL_LIBSSL += -lcrypto
13331361 endif
13341362else
13351363 BASIC_CFLAGS += -DNO_OPENSSL
0 commit comments