[fedora-arm] [PATCH] stage1: fix cloog's -rpath parameters.

Al Stone ahs3 at redhat.com
Mon Nov 26 22:21:37 UTC 2012


On 11/25/2012 05:07 AM, Chen Baozi wrote:
> Add ${ROOTFS}/usr/lib in which libppl_c.so.4 is located.
>
> Signed-off-by: Chen Baozi <baozich at gmail.com>
> ---
>   stage1 | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/stage1 b/stage1
> index fe0fc8d..370a38e 100755
> --- a/stage1
> +++ b/stage1
> @@ -724,7 +724,7 @@ fi
>   	srpm cloog
>   	mcd $BUILDDIR/t-cloog
>   	$SRC/cloog-*/configure $TCONFIGARGS --with-ppl
> -	make $J LDADD="-rpath ${ROOTFS}/lib -lcloog"
> +	make $J LDADD="-rpath '${ROOTFS}/lib:${ROOTFS}/usr/lib' -lcloog"
>   	make $J install DESTDIR=${ROOTFS}
>   	fix_la cloog
>   	;;
>

Thanks for the patch!

In the latest version of the stage1 script, the make line above looks
like this:

    make $J LDADD="-rpath ${ROOTFS}/lib${SUFFIX} -lcloog"

In the rootfs, lib${SUFFIX} == lib64, which is a symlink to usr/lib64,
so the build should be able to find libppl_c.so.4 without this patch.
At least, it _seems_ to be working on my desktop.

So what was the symptom that made the patch necessary?  I'd actually
rather we remove all use of -rpath, if we can.

-- 
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3 at redhat.com
-----------------------------------


More information about the arm mailing list