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

Re: [PATCH] Makefile: add NO_CLOCK_GETTIME check

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 3, 2014, 20:58 UTC
Message-ID
<xmqqsik8whdy.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqqwq9kwkrg.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 10 quoted lines
>> +ifndef NO_CLOCK_GETTIME
>>  ifdef HAVE_CLOCK_GETTIME
>>  	BASIC_CFLAGS += -DHAVE_CLOCK_GETTIME
>>  	EXTLIBS += -lrt
>>  endif
>> +endif
>
> I am not sure why you even need this change.  Wouldn't you get
> exactly the same result if you did not define HAVE_CLOCK_GETTIME
> when building?
That is, doing something like:
    $ make HAVE_CLOCK_GETTIME= V=1
would show lines like:
    cc -o credential-store.o -c -MF ./.depend/credential-store.o.d
    -MQ credential-store.o -MMD -MP  -O2 -Wall -Wvla
    -Wdeclaration-after-statement -Wno-format-zero-length -g
    -I. -DHAVE_ALLOCA_H  -DHAVE_PATHS_H -DHAVE_DEV_TTY
    -DXDL_FAST_HASH -DSHA1_HEADER='"block-sha1/sha1.h"'
    -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"'  credential-store.c
that does not have -DHAVE_CLOCK_GETTIME on the command line, no?
Previous: Junio C Hamano
Message 3 of 3 in “Makefile: add NO_CLOCK_GETTIME check”
  1. Makefile: add NO_CLOCK_GETTIME checkReuben Hawkins, Sep 3, 2014
  2. Junio C HamanoSep 3, 2014
  3. Junio C HamanoSep 3, 2014

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.