{"thread":{"id":"27860","subject":"[PATCH] Makefile: add Minix configuration options.","startedAt":"2011-07-19T22:55:47Z","lastAt":"2011-07-19T22:55:47Z","messageCount":1,"participants":["Thomas Cort"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"171712","messageId":"20110719185547.e9ee8e14.tcort@minix3.org","threadId":"27860","inReplyTo":null,"subject":"[PATCH] Makefile: add Minix configuration options.","fromName":"Thomas Cort","fromEmail":"tcort@minix3.org","sentAt":"2011-07-19T22:55:47Z","receivedAt":"2011-07-19T22:55:47Z","isPatch":true,"sender":{"key":"tcort@minix3.org","avatar":null},"body":"Add a $(uname_S) case for Minix with the correct options.\n\nMinix's linker needs all libraries specified explicitly.\nAdd NEEDS_SSL_WITH_CURL to add -lssl when using -lcurl.\nAdd NEEDS_IDN_WITH_CURL to add -lidn when using -lcurl.\n\nWhen NEEDS_SSL_WITH_CURL is defined and NEEDS_CRYPTO_WITH_SSL\nis defined, add -lcrypt to CURL_LIBCURL.\n\nChange OPENSSL_LINK to OPENSSL_LIBSSL in the\nNEEDS_CRYPTO_WITH_SSL conditional in the libopenssl\nsection. Libraries go in OPENSSL_LIBSSL, OPENSSL_LINK\nis for linker flags.\n\nSigned-off-by: Thomas Cort <tcort@minix3.org>\n---\n Makefile |   30 +++++++++++++++++++++++++++++-\n 1 files changed, 29 insertions(+), 1 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 4ed7996..62ad0c2 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -115,6 +115,10 @@ all::\n #\n # Define NEEDS_SSL_WITH_CRYPTO if you need -lssl when using -lcrypto (Darwin).\n #\n+# Define NEEDS_SSL_WITH_CURL if you need -lssl with -lcurl (Minix).\n+#\n+# Define NEEDS_IDN_WITH_CURL if you need -lidn when using -lcurl (Minix).\n+#\n # Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).\n #\n # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,\n@@ -1149,6 +1153,20 @@ ifeq ($(uname_S),Interix)\n \t\tNO_FNMATCH_CASEFOLD = YesPlease\n \tendif\n endif\n+ifeq ($(uname_S),Minix)\n+\tNO_IPV6 = YesPlease\n+\tNO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease\n+\tNO_NSEC = YesPlease\n+\tNEEDS_LIBGEN =\n+\tNEEDS_CRYPTO_WITH_SSL = YesPlease\n+\tNEEDS_IDN_WITH_CURL = YesPlease\n+\tNEEDS_SSL_WITH_CURL = YesPlease\n+\tNEEDS_RESOLV =\n+\tNO_HSTRERROR = YesPlease\n+\tNO_MMAP = YesPlease\n+\tNO_CURL =\n+\tNO_EXPAT =\n+endif\n ifneq (,$(findstring MINGW,$(uname_S)))\n \tpathsep = ;\n \tNO_PREAD = YesPlease\n@@ -1293,6 +1311,16 @@ else\n \telse\n \t\tCURL_LIBCURL = -lcurl\n \tendif\n+\tifdef NEEDS_SSL_WITH_CURL\n+\t\tCURL_LIBCURL +=\t-lssl\n+\t\tifdef NEEDS_CRYPTO_WITH_SSL\n+\t\t\tCURL_LIBCURL += -lcrypto\n+\t\tendif\n+\tendif\n+\tifdef NEEDS_IDN_WITH_CURL\n+\t\tCURL_LIBCURL += -lidn\n+\tendif\n+\n \tREMOTE_CURL_PRIMARY = git-remote-http$X\n \tREMOTE_CURL_ALIASES = git-remote-https$X git-remote-ftp$X git-remote-ftps$X\n \tREMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)\n@@ -1329,7 +1357,7 @@ ifndef NO_OPENSSL\n \t\tOPENSSL_LINK =\n \tendif\n \tifdef NEEDS_CRYPTO_WITH_SSL\n-\t\tOPENSSL_LINK += -lcrypto\n+\t\tOPENSSL_LIBSSL += -lcrypto\n \tendif\n else\n \tBASIC_CFLAGS += -DNO_OPENSSL\n-- \n1.7.4.1\n"}]}