Fix which usage.
authorLuca Longinotti <chtekk@gentoo.org>
Fri, 16 Mar 2007 22:47:29 +0000 (22:47 +0000)
committerLuca Longinotti <chtekk@gentoo.org>
Fri, 16 Mar 2007 22:47:29 +0000 (22:47 +0000)
eclass/mysql.eclass

index 4698b464a88a183c0d9f854fadd23b2aae861a0c..1cd69f67b8353f364c951f58953aecd3bba9d84f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.71 2007/03/06 15:55:55 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.72 2007/03/16 22:47:29 chtekk Exp $
 
 # Author: Francesco Riosa (Retired) <vivo@gentoo.org>
 # Maintainer: Luca Longinotti <chtekk@gentoo.org>
@@ -526,8 +526,8 @@ mysql_src_unpack() {
                # TODO: check this with a cmake expert 
                use innodb \
                && cmake \
-                       -DCMAKE_C_COMPILER=$(which $(tc-getCC)) \
-                       -DCMAKE_CXX_COMPILER=$(which $(tc-getCC)) \
+                       -DCMAKE_C_COMPILER=$(type -P $(tc-getCC)) \
+                       -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCC)) \
                        "storage/innobase"
        else
                rebuilddirlist=". innobase"