Re: [PATCH] Makefile: Change library order for static linking
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 17, 2015, 22:08 UTC
- Message-ID
- <xmqq7fnoitra.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20150917212016.GF606@cruxbox>
Remi Pommarel <repk@triplefau.lt> writes:
Show 8 quoted lines
> On Thu, Sep 17, 2015 at 12:51:18PM -0700, Junio C Hamano wrote: >> IIRC historically the division between ssl and crypto was messy. >> Especially, I am not sure if the change to NEEDS_SSL_WITH_CRYPTO >> in this patch is correct for platforms that require that macro >> defined. > > I think it is correct as anywhere else in Makefile the order is ssl > first then crypto (from Makefile:1047):
IIRC, NEEDS_SSL_WITH_CRYPTO was invented for people whose platform needed that to be different
597c9cc5 (Flatten tools/ directory to make build procedure simpler., 2005-09-07) has this bit:
+ifdef NEEDS_SSL_WITH_CRYPTO
+ LIB_4_CRYPTO = -lcrypto -lssl
+else
+ LIB_4_CRYPTO = -lcrypto
+endifThat is, for most people, linking with -lcrypto was sufficient, but some people needed to grab things from -lssl when they need to do so, because things in -lcrypto referred to what was only in -lssl.
Are you on such a platform? If so can you test these both ways and make sure you are not breaking things for those on such a platform?