Re: [PATCH] Be nice with compilers that do not support runtime paths at all.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Benoit Sigoure <tsuna@...>
Cc: <git@...>
Date: Wednesday, October 3, 2007 - 7:18 pm

Benoit Sigoure <tsuna@lrde.epita.fr> writes:


Thanks for this part;


I'll let Darwin users to fight the defaults for this part out.



While these parts are ugly but correct, I think...


this and the ICONV one are missing s/=/+=/.

If we do not care about supporting too old GNU make, we can do
this by first adding this near the top:

        ifndef NO_RPATH
        LINKER_PATH = -L$(1) $(CC_LD_DYNPATH)$(1)
        else
        LINKER_PATH = -L$(1)
        endif

and then doing something like:

	CURL_LIBCURL = $(call LINKER_PATH,$(CURLDIR)/$(lib))
	OPENSSL_LINK = $(call LINKER_PATH,$(OPENSSLDIR)/$(lib))

to make it easier to read and less error prone.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linking with -R (rpath) not supported on Darwin, Benoit SIGOURE, (Wed Oct 3, 5:34 pm)
Re: Linking with -R (rpath) not supported on Darwin, Brian Gernhardt, (Wed Oct 3, 6:39 pm)
Re: Linking with -R (rpath) not supported on Darwin, Benoit SIGOURE, (Wed Oct 3, 6:58 pm)
Re: Linking with -R (rpath) not supported on Darwin, Junio C Hamano, (Wed Oct 3, 5:41 pm)
Re: [PATCH] Be nice with compilers that do not support runti..., Junio C Hamano, (Wed Oct 3, 7:18 pm)
Re: [PATCH] Be nice with compilers that do not support runti..., Johannes Schindelin, (Mon Oct 22, 6:52 am)