git/list[1] front-page[2] threads[3] people[4] search[5] about
 

minor lib issue

From
BTBennett Todd <bet@rahul.net>
Date
Dec 23, 2005, 23:55 UTC
Message-ID
<20051223235507.GA22368@rahul.net>

Not sure whether it's practical to fix this without autoconfiscating the thing, but the logic for picking what libs to link against isn't as robust as it might be, and the lib ordering (libcurl after libcrypto) depends on dynamic linking to work.

I was able to build on Bent Linux (uClibc based, static linking only) with the attached patch, which obviously is a one-off kludge and not a reasonable fix for the problem.

-Bennett

P.S. In case anyone cares, I call Bent Linux my mid-life crisis project. Unix as I grew to love her about 25 years ago, when she and I were both a lot slimmer and healthier. <URL:http://bent.latency.net/>

diff -ru git-1.0.3.orig/Makefile git-1.0.3/Makefile --- git-1.0.3.orig/Makefile 2005-12-23 23:07:42.000000000 +0000 +++ git-1.0.3/Makefile 2005-12-23 23:09:36.000000000 +0000

@@ -422,8 +422,8 @@
 git-ssh-pull$X: rsh.o fetch.o
 git-ssh-push$X: rsh.o
 
-git-http-fetch$X: LIBS += $(CURL_LIBCURL)
-git-http-push$X: LIBS += $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
+git-http-fetch$X: LIBS += $(CURL_LIBCURL) $(LIB_4_CRYPTO) -lssl -lcrypto
+git-http-push$X: LIBS += $(CURL_LIBCURL) $(EXPAT_LIBEXPAT) -lssl -lcrypto
 git-rev-list$X: LIBS += $(OPENSSL_LIBSSL)
 
 init-db.o: init-db.c
Message 1 of 1 in “minor lib issue”
  1. Bennett ToddDec 23, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.