diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-07-25 18:27:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-07-25 18:27:56 +0000 |
commit | 4b17e3e2d0b3ea8e5e44004b9e41f94d861e495d (patch) | |
tree | 9c7a88946ac32d5b15f0920e30fc34a52da56441 /eclass/toolchain-funcs.eclass | |
parent | Remove *.orig. (diff) | |
download | historical-4b17e3e2d0b3ea8e5e44004b9e41f94d861e495d.tar.gz historical-4b17e3e2d0b3ea8e5e44004b9e41f94d861e495d.tar.bz2 historical-4b17e3e2d0b3ea8e5e44004b9e41f94d861e495d.zip |
enable generation of ldscripts for freebsd systems #428014 by Yuta SATOH
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 090518b3ed90..5375c542baa7 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.113 2012/07/21 16:11:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.114 2012/07/25 18:27:56 vapier Exp $ # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -615,7 +615,8 @@ gen_usr_ldscript() { # Eventually we'd like to get rid of this func completely #417451 case ${CTARGET:-${CHOST}} in *-darwin*) ;; - *linux*) use prefix && return 0 ;; + *linux*|*-freebsd*) + use prefix && return 0 ;; *) return 0 ;; esac @@ -685,7 +686,7 @@ gen_usr_ldscript() { ln -snf "../../${libdir}/${tlib}" "${lib}" popd > /dev/null ;; - *linux*) + *) if ${auto} ; then tlib=$(scanelf -qF'%S#F' "${ED}"/usr/${libdir}/${lib}) [[ -z ${tlib} ]] && die "unable to read SONAME from ${lib}" |