This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH] aarch64: use lib64 as default lib and slib directory
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: libc-ports at sourceware dot org
- Date: Fri, 15 Mar 2013 14:52:50 +0000
- Subject: Re: [PATCH] aarch64: use lib64 as default lib and slib directory
- References: <mvmd2v3o7om.fsf@hawking.suse.de>
Hi,
This patch seems to have the effect of moving the dynamic linker to
/lib64, do we need some ldd-rewrite.sed foo hooked into
ports/sysdeps/unix/sysv/linux/aarch64/configure.in ?
/Marcus
On 13 March 2013 11:33, Andreas Schwab <schwab@suse.de> wrote:
> The default (s)libdir for aarch64 should be /lib64.
>
> Andreas.
>
> * sysdeps/unix/sysv/linux/aarch64/configure.in: Set
> libc_cv_slibdir, libdir and libc_cv_localedir.
> * sysdeps/unix/sysv/linux/aarch64/configure.in: Regenerate.
>
> diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/configure b/ports/sysdeps/unix/sysv/linux/aarch64/configure
> index 5a22126..04b6c81 100644
> --- a/ports/sysdeps/unix/sysv/linux/aarch64/configure
> +++ b/ports/sysdeps/unix/sysv/linux/aarch64/configure
> @@ -1,3 +1,16 @@
> # This file is generated from configure.in by Autoconf. DO NOT EDIT!
> + # Local configure fragment for sysdeps/unix/sysv/linux/aarch64.
>
> arch_minimum_kernel=3.7.0
> +
> +test -n "$libc_cv_slibdir" ||
> +case "$prefix" in
> + /usr | /usr/)
> + libc_cv_slibdir="/lib64"
> + if test "$libdir" = '${exec_prefix}/lib'; then
> + libdir='${exec_prefix}/lib64';
> + # Locale data can be shared between 32bit and 64bit libraries
> + libc_cv_localedir='${exec_prefix}/lib/locale'
> + fi
> + ;;
> +esac
> diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/configure.in b/ports/sysdeps/unix/sysv/linux/aarch64/configure.in
> index d1995d4..6596a15 100644
> --- a/ports/sysdeps/unix/sysv/linux/aarch64/configure.in
> +++ b/ports/sysdeps/unix/sysv/linux/aarch64/configure.in
> @@ -2,3 +2,15 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
> # Local configure fragment for sysdeps/unix/sysv/linux/aarch64.
>
> arch_minimum_kernel=3.7.0
> +
> +test -n "$libc_cv_slibdir" ||
> +case "$prefix" in
> + /usr | /usr/)
> + libc_cv_slibdir="/lib64"
> + if test "$libdir" = '${exec_prefix}/lib'; then
> + libdir='${exec_prefix}/lib64';
> + # Locale data can be shared between 32bit and 64bit libraries
> + libc_cv_localedir='${exec_prefix}/lib/locale'
> + fi
> + ;;
> +esac
> --
> 1.8.1.5
>
> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."