Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 473730
Collapse All | Expand All

(-)/home/benda/gnto/usr/portage/profiles/prefix/features/with-libc/make.defaults (+9 lines)
Line 0 Link Here
1
# We enable sysroot support for gcc and binutils
2
# here. gen_usr_ldscript from toolchain-funcs inject full path into
3
# the ld script wrapper, which results in double prefix. Furthermore,
4
# the original motivation of this helper (bug #4411), putting dynamic
5
# library into /lib and static one into /usr/lib while linking to
6
# dynamic one first, does not apply Prefix as we don't rely on
7
# {/usr,}/lib separation. 
8
9
PREFIX_DISABLE_GEN_USR_LDSCRIPT="yes"
(-)/home/benda/gnto/usr/portage/profiles/prefix/features/with-libc/package.use (+7 lines)
Line 0 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/linux/package.use.mask,v 1.4 2011/12/01 22:50:18 darkside Exp $
4
5
# Benda Xu <heroxbd@gentoo.org> (17 Jun 2013)
6
# let binutils-config inject dynamic-linker of Prefix into executable
7
sys-devel/binutils dynl
(-)/home/benda/gnto/usr/portage/profiles/prefix/features/with-libc/profile.bashrc (+29 lines)
Line 0 Link Here
1
# use sysroot of toolchain to get include and library at compile time work
2
# Benda Xu <heroxbd@gentoo.org> (17 Jun, 2013)
3
4
if [[ ${CATEGORY} == sys-devel ]] && [[ ${PN} == gcc || ${PN} == binutils || ${PN} == libtool ]] \
5
	&& [[ ${EBUILD_PHASE} == unpack ]]; then
6
	elog "append --with-sysroot=${EPREFIX} to configure for Prefix libc"
7
	EXTRA_ECONF+="--with-sysroot=${EPREFIX}"
8
fi
9
10
# from bintuils info page: In case a sysroot prefix is configured, and
11
# the filename starts with the `/' character, and the script being
12
# processed was located inside the sysroot prefix, the filename will
13
# be looked for in the sysroot prefix. Otherwise, the linker will try
14
# to open the file in the current directory. glibc will append libdir
15
# and slibdir, which is prepended with $EPREFIX, to libc.so and
16
# libpthread.so linker scripts. That will cause double prefix if ld is
17
# configured with sysroot support.
18
# This is a dirty hack here, suggestion for alternatives welcome.
19
# Benda Xu <heroxbd@gentoo.org> (17 Jun, 2013)
20
21
if [[ ${CATEGORY}/${PN} == sys-libs/glibc ]]; then
22
        eblit-src_install-post() {
23
                elog "fixing ldscripts to prevent double prefix with sysroot-enabled ld"
24
                for lds in "$ED"usr/lib/lib{c,pthread}.so; do
25
                        sed -i "s,$EPREFIX,,g" "$lds"
26
                done
27
        }
28
fi
29
(-)/home/benda/gnto/usr/portage/profiles/prefix/linux/amd64/parent (-1 / +1 lines)
Lines 1-2 Link Here
1
../../../default/linux/amd64/10.0/no-multilib
1
../../../default/linux/amd64/13.0/no-multilib
2
..
2
..
(-)/home/benda/gnto/usr/portage/profiles/prefix/linux/amd64/with-libc/parent (+2 lines)
Line 0 Link Here
1
../../../features/with-libc
2
..

Return to bug 473730