summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-10-06 15:05:12 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-10-06 15:05:12 +0000
commit2d9a30ce3e88f9c11cbc09a85ee27f812e28fb5a (patch)
tree2b2973cddd5fb6a8a02c08dc2a3b231ebb787c38 /games-sports/vdrift
parentx86 stable wrt security bug #339776 (diff)
downloadgentoo-2-2d9a30ce3e88f9c11cbc09a85ee27f812e28fb5a.tar.gz
gentoo-2-2d9a30ce3e88f9c11cbc09a85ee27f812e28fb5a.tar.bz2
gentoo-2-2d9a30ce3e88f9c11cbc09a85ee27f812e28fb5a.zip
Respect LDFLAGS. Bug #339805
(Portage version: 2.1.9.13/cvs/Linux i686)
Diffstat (limited to 'games-sports/vdrift')
-rw-r--r--games-sports/vdrift/ChangeLog8
-rw-r--r--games-sports/vdrift/files/vdrift-20090615-ldflags.patch10
-rw-r--r--games-sports/vdrift/vdrift-20090615.ebuild5
3 files changed, 19 insertions, 4 deletions
diff --git a/games-sports/vdrift/ChangeLog b/games-sports/vdrift/ChangeLog
index 92d95cf4dfe4..840bce0e96d7 100644
--- a/games-sports/vdrift/ChangeLog
+++ b/games-sports/vdrift/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-sports/vdrift
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.13 2009/11/20 14:16:12 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.14 2010/10/06 15:05:12 tupone Exp $
+
+ 06 Oct 2010; Tupone Alfredo <tupone@gentoo.org> vdrift-20090615.ebuild,
+ +files/vdrift-20090615-ldflags.patch:
+ Respect LDFLAGS. Bug #339805 by flameeyes@gentoo.org
20 Nov 2009; Markus Meier <maekke@gentoo.org> vdrift-20090615.ebuild:
amd64/x86 stable, bug #290955
diff --git a/games-sports/vdrift/files/vdrift-20090615-ldflags.patch b/games-sports/vdrift/files/vdrift-20090615-ldflags.patch
new file mode 100644
index 000000000000..1949ef8036c0
--- /dev/null
+++ b/games-sports/vdrift/files/vdrift-20090615-ldflags.patch
@@ -0,0 +1,10 @@
+--- SConstruct.old 2010-10-06 15:54:11.000000000 +0200
++++ SConstruct 2010-10-06 15:59:55.000000000 +0200
+@@ -141,6 +141,7 @@
+ LINKFLAGS = ['-pthread'],
+ CC = 'gcc', CXX = 'g++',
+ options = opts)
++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
+ check_headers = ['asio.hpp', 'boost/bind.hpp', 'GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h']
+
+
diff --git a/games-sports/vdrift/vdrift-20090615.ebuild b/games-sports/vdrift/vdrift-20090615.ebuild
index 5db6f5498197..c47d9c33c46e 100644
--- a/games-sports/vdrift/vdrift-20090615.ebuild
+++ b/games-sports/vdrift/vdrift-20090615.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/vdrift-20090615.ebuild,v 1.4 2009/11/23 01:38:47 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/vdrift-20090615.ebuild,v 1.5 2010/10/06 15:05:12 tupone Exp $
EAPI=2
inherit eutils games
@@ -37,6 +37,7 @@ src_prepare() {
-e "s/'-O1',\?//" \
SConstruct \
|| die "sed failed"
+ epatch "${FILESDIR}"/${P}-ldflags.patch
}
src_compile() {