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

Build system bugs related to handling of 'LIBS' environment variable

From
DGDmitri Gribenko <gribozavr@gmail.com>
Date
Apr 3, 2013, 15:16 UTC
Message-ID
<CA+Y5xYeghRA-Whtq6e-sskeow38jz+6UgYWP-ng3xdRn_XUHEA@mail.gmail.com>
Hello,
Git fails to build if LIBS contains -lpthread.  To reproduce:
  export LIBS=-lpthread
  ./configure
  make V=1 git-credential-store

The bug is that linker command line does not contain -lpthread, so linking fails.

configure respects LIBS and finds that it does not have to add anything for pthread:

checking for POSIX Threads with ''... yes

But (first bug) configure does not pass the LIBS variable in config.mak.autogen. Even if it did, Makefile would overwrite (second bug) LIBS with:

  LIBS = $(GITLIBS) $(EXTLIBS)
Makefile should rather append to LIBS.
Dmitri Gribenko

-- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

Message 1 of 1 in “Build system bugs related to handling of 'LIBS' environment variable”
  1. Dmitri GribenkoApr 3, 2013

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.