summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-25 18:27:56 +0000
committerMike Frysinger <vapier@gentoo.org>2012-07-25 18:27:56 +0000
commit41cd6bb5c6c7bea3d68affe201bfd78ee513db35 (patch)
treea9bf43f66d644e94b5f5e3e686a691caf2476cee /eclass/toolchain-funcs.eclass
parentRemove *.orig. (diff)
downloadgentoo-2-41cd6bb5c6c7bea3d68affe201bfd78ee513db35.tar.gz
gentoo-2-41cd6bb5c6c7bea3d68affe201bfd78ee513db35.tar.bz2
gentoo-2-41cd6bb5c6c7bea3d68affe201bfd78ee513db35.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.eclass7
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}"