Re: [PATCH] Be nice with compilers that do not support runtime paths at all.
- From
Brian Gernhardt <benji@silverinsanity.com>
- Date
- Oct 4, 2007, 01:08 UTC
- Message-ID
- <FC9DDD6F-14A5-4B73-9192-042EA107ED77@silverinsanity.com>
- In-Reply-To
- <47041C7A.9090003@midwinter.com>
On Oct 3, 2007, at 6:49 PM, Steven Grimm wrote:
Show 12 quoted lines
> Benoit Sigoure wrote: >> On Darwin for instance, there is no -R or -Wl,-rpath thing to >> fiddle with, >> it's simply not supported by the dynamic loader. This patch >> introduces a >> NO_RPATH define which is enabled by default for Darwin. >> > > I compile git on a MacBook Pro (OS X 10.4, gcc 4.0.1 build 5367 > from the normal Xcode install that comes on the OS install DVD) on > a regular basis. The makefile works fine for me. I suspect there's > something else going on here.
The rpath code is only used if you define one of the following options:
CURLDIR ZLIB_PATH OPENSSLDIR ICONVDIR
The default Darwin options don't define any of these, it just relies on finding those libraries in the library path (including /sw or /opt/ local if you have them installed).
~~ Brian G.