summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-05-24 11:18:46 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-05-24 11:18:46 +0000
commit9e0bef5570881265bba11d7af44bd47c65b1e3e6 (patch)
tree10aee5c3a58a1dfa293dd5f48578f50f4b868d3a /eclass
parentRemove old. (diff)
downloadgentoo-2-9e0bef5570881265bba11d7af44bd47c65b1e3e6.tar.gz
gentoo-2-9e0bef5570881265bba11d7af44bd47c65b1e3e6.tar.bz2
gentoo-2-9e0bef5570881265bba11d7af44bd47c65b1e3e6.zip
Create objdir if MAKEOBJDIRPREFIX is defined, so that we can make out of tree buils easily.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/freebsd.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index b456aefc9d56..1ba90027dff5 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.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/freebsd.eclass,v 1.21 2012/05/17 13:58:08 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.22 2012/05/24 11:18:46 aballier Exp $
#
# Diego Pettenò <flameeyes@gentoo.org>
@@ -110,6 +110,12 @@ freebsd_src_compile() {
# Make sure to use FreeBSD definitions while crosscompiling
[[ -z "${BMAKE}" ]] && BMAKE="$(freebsd_get_bmake)"
+ # Create objdir if MAKEOBJDIRPREFIX is defined, so that we can make out of
+ # tree buils easily.
+ if [[ -n "${MAKEOBJDIRPREFIX}" ]] ; then
+ mkmake obj || die
+ fi
+
bsdmk_src_compile
}