[llvm-commits] [patch] Use $ORIGIN it the rpath of libraries on non-darwin hosts

Eric Christopher echristo at apple.com
Wed May 19 22:01:42 PDT 2010


On May 16, 2010, at 8:04 PM, Rafael Espindola wrote:

>> This going to work on windows?  Or am I missing some context in the diff?
> 
> I have no idea what rpath looks like on windows, but we already use
> $ORIGIN for programs:
> 
> ifneq ($(HOST_OS),Darwin)
> ifneq ($(DARWIN_MAJVERS),4)
> ifdef TOOLNAME
>  LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
>  ifdef EXAMPLE_TOOL
>    LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(RDYNAMIC)
>  else
>    LD.Flags += $(RPATH) -Wl,$(ToolDir) $(RDYNAMIC)
>  endif
> endif
> endif
> endif
> 
> The patch added it for libraries.

Seems reasonable to me.

-eric



More information about the llvm-commits mailing list