Binary relocatability part 1

Alexandre Julliard julliard at
Tue Aug 31 14:09:39 CDT 2004

Mike Hearn <mike at> 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 at

More information about the wine-devel mailing list