[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Binary relocatability part 1
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2004-08-31 19:09:39
Message-ID: 87r7pngm4s.fsf () mail ! wine ! dyndns ! org
[Download RAW message or body]

Mike Hearn <mike@navi.cx> writes:

> +dnl This is used for binary relocatability
> +if echo $libdir | grep '^\${exec_prefix}' >/dev/null; then
> +   RPATH="-Wl,-rpath,'\$\${ORIGIN}/..'`echo $libdir | sed 's/\${exec_prefix}//'`"
> +fi

This is still making assumptions about the contents of bindir and
libdir. What you need is a generic way to find a relative path from
any directory to any other. Also this needs to be done at make time,
not in configure.

-- 
Alexandre Julliard
julliard@winehq.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic