diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2008-12-05 18:37:50 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2008-12-05 18:37:50 +0000 |
commit | 3f622fdbb6f302c312c030b4406e023635dc3c3e (patch) | |
tree | daa7291e0287762538e08b31e76b1bbd8a0dc5f5 /games-board/phalanx/phalanx-22.ebuild | |
parent | clean up (diff) | |
download | gentoo-2-3f622fdbb6f302c312c030b4406e023635dc3c3e.tar.gz gentoo-2-3f622fdbb6f302c312c030b4406e023635dc3c3e.tar.bz2 gentoo-2-3f622fdbb6f302c312c030b4406e023635dc3c3e.zip |
Respect CC and LDFLAGS, bug #244068
(Portage version: 2.2_rc17/cvs/Linux 2.6.27.7 i686)
Diffstat (limited to 'games-board/phalanx/phalanx-22.ebuild')
-rw-r--r-- | games-board/phalanx/phalanx-22.ebuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/games-board/phalanx/phalanx-22.ebuild b/games-board/phalanx/phalanx-22.ebuild index 5032965ee213..557bd58a646c 100644 --- a/games-board/phalanx/phalanx-22.ebuild +++ b/games-board/phalanx/phalanx-22.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/phalanx/phalanx-22.ebuild,v 1.4 2008/07/24 18:05:48 ken69267 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/phalanx/phalanx-22.ebuild,v 1.5 2008/12/05 18:37:50 nyhm Exp $ -inherit games +inherit toolchain-funcs games MY_PN="Phalanx" MY_PV="XXII" @@ -22,11 +22,16 @@ S=${WORKDIR}/${MY_P} src_compile() { # configure is not used in the project; confs are in Makefile, # and here we override them: - local define="-DGNUFUN" + local define="-DGNUFUN" myvar for myvar in "PBOOK" "SBOOK" "LEARN" ; do define="${define} -D${myvar}_DIR=\"\\\"${GAMES_DATADIR}/${PN}\\\"\"" done - emake DEFINES="${define}" CFLAGS="${CFLAGS}" || die "emake failed" + emake \ + DEFINES="${define}" \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + || die "emake failed" } src_install() { |