Re: [PATCH] Makefile: add NEEDS_LIBRT to optionally link with librt
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 7, 2016, 21:14 UTC
- Message-ID
- <xmqqwpkxnoae.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20160707204554.14961-1-rdwampler@gmail.com>
Ronald Wampler <rdwampler@gmail.com> writes:
> I am not sure if this the correction solution. Another option I > considered was to wrap the EXTLIBS += -lrt is an ifndef NO_RT and only > defining NO_RT for Mac OS X in config.mak.uname.
That alternative would make the resulting code noisier/uglier with nested ifdef, I would imagine, but it would be of less impact to the existing users. But my gut feeling is that the patch you sent is probably a better solution for the longer term.
Thanks.