summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-07-21 12:18:26 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-07-21 12:18:26 +0000
commit302fcd618738dda26b623b14be9f093d555c10a6 (patch)
treeab02043917e1e7941109dee0755e1648812c0c7c /gnustep-apps/fisicalab
parentQA_DT_HASH for ignored LDFLAGS (diff)
downloadgentoo-2-302fcd618738dda26b623b14be9f093d555c10a6.tar.gz
gentoo-2-302fcd618738dda26b623b14be9f093d555c10a6.tar.bz2
gentoo-2-302fcd618738dda26b623b14be9f093d555c10a6.zip
Fix compilation with forced --as-needed, bug #278135
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'gnustep-apps/fisicalab')
-rw-r--r--gnustep-apps/fisicalab/ChangeLog6
-rw-r--r--gnustep-apps/fisicalab/files/fisicalab-0.1-as-needed.patch18
-rw-r--r--gnustep-apps/fisicalab/fisicalab-0.1.ebuild8
3 files changed, 30 insertions, 2 deletions
diff --git a/gnustep-apps/fisicalab/ChangeLog b/gnustep-apps/fisicalab/ChangeLog
index 4fbecf0cde76..f7984ae4f74e 100644
--- a/gnustep-apps/fisicalab/ChangeLog
+++ b/gnustep-apps/fisicalab/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for gnustep-apps/fisicalab
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/fisicalab/ChangeLog,v 1.1 2009/03/16 11:50:31 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/fisicalab/ChangeLog,v 1.2 2009/07/21 12:18:26 voyageur Exp $
+
+ 21 Jul 2009; Bernard Cafarelli <voyageur@gentoo.org> fisicalab-0.1.ebuild,
+ +files/fisicalab-0.1-as-needed.patch:
+ Fix compilation with forced --as-needed, bug #278135
*fisicalab-0.1 (16 Mar 2009)
diff --git a/gnustep-apps/fisicalab/files/fisicalab-0.1-as-needed.patch b/gnustep-apps/fisicalab/files/fisicalab-0.1-as-needed.patch
new file mode 100644
index 000000000000..298f2116ae03
--- /dev/null
+++ b/gnustep-apps/fisicalab/files/fisicalab-0.1-as-needed.patch
@@ -0,0 +1,18 @@
+--- GNUmakefile.preamble.orig 2009-07-21 13:59:31.000000000 +0200
++++ GNUmakefile.preamble 2009-07-21 13:59:33.000000000 +0200
+@@ -12,7 +12,7 @@
+ ADDITIONAL_CFLAGS +=
+
+ # Additional flags to pass to the linker
+-ADDITIONAL_LDFLAGS += -lgsl -lgslcblas
++ADDITIONAL_LDFLAGS +=
+
+ # Additional include directories the compiler should search
+ ADDITIONAL_INCLUDE_DIRS += -I/usr/include
+@@ -21,5 +21,5 @@
+ ADDITIONAL_LIB_DIRS += -L/usr/lib
+
+ # Additional GUI libraries to link
+-ADDITIONAL_GUI_LIBS +=
++ADDITIONAL_GUI_LIBS += -lgsl -lgslcblas
+
diff --git a/gnustep-apps/fisicalab/fisicalab-0.1.ebuild b/gnustep-apps/fisicalab/fisicalab-0.1.ebuild
index 5b5a48577a76..84ca83211067 100644
--- a/gnustep-apps/fisicalab/fisicalab-0.1.ebuild
+++ b/gnustep-apps/fisicalab/fisicalab-0.1.ebuild
@@ -1,7 +1,8 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/fisicalab/fisicalab-0.1.ebuild,v 1.1 2009/03/16 11:50:31 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/fisicalab/fisicalab-0.1.ebuild,v 1.2 2009/07/21 12:18:26 voyageur Exp $
+EAPI=2
inherit gnustep-2
DESCRIPTION="educational application to solve physics problems"
@@ -18,3 +19,8 @@ DEPEND=">=sci-libs/gsl-1.10
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+
+}