cmake and RPATH

Alexander Neundorf neundorf at kde.org
Wed Feb 15 19:02:53 CET 2006


On Wednesday 15 February 2006 15:03, Thiago Macieira wrote:
> Alexander Neundorf wrote:
> >let all libraries be created in the same output directory, and for the
> >executables a simple shell script is created, e.g. for kde-config:
> >
> >#!/bin/sh
> >LD_LIBRARY_PATH=/home/alex/src/kdelibs-build/lib
> > /home/alex/kdelibs-build/bin/kde-config
> >
> >If other systems use other variables than LD_LIBRARY_PATH (e.g.
> >DYLD_LIBRARY:PATH on OS X) then the script has to use this other
> > variable.
>
> [still catching up on all the February emails]

> LD_LIBRARY_PATH doesn't work on a standard build.

Why ?

> LD_LIBRARY_PATH is a no-op unless you give the compiler the option
> -Wl,--enable-new-dtags. 

LD_LIBRARY_PATH doesn't work without special flags to the linker ? 

> GNU ld has supported it for quite a few years,
> but I have no idea how the non-GNU linkers on ELF platforms do.

On OS X (which is non-ELF) there's DYLD_LIBRARY_PATH.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list