/[gentoo-x86]/sci-chemistry/relax/files/relax-2.1.0-gentoo.patch
Gentoo

Contents of /sci-chemistry/relax/files/relax-2.1.0-gentoo.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jul 19 16:05:51 2012 UTC (10 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
sci-chemistry/relax: New addition

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 sconstruct | 6 +++++-
2 1 files changed, 5 insertions(+), 1 deletions(-)
3
4 diff --git a/sconstruct b/sconstruct
5 index c0fab95..c9d5e2c 100644
6 --- a/sconstruct
7 +++ b/sconstruct
8 @@ -26,7 +26,7 @@
9
10 # Import statements.
11 from numpy import get_include
12 -from os import getcwd, path, remove, sep, walk
13 +from os import getcwd, path, remove, sep, walk, environ
14 import platform
15 from re import search
16 from shutil import rmtree
17 @@ -586,6 +586,10 @@ class Main:
18 for file in files:
19 nodes.append(env.SharedObject(dir + path.sep + file, CCFLAGS=cflags))
20
21 + env.Append(LINKFLAGS = environ['LDFLAGS'])
22 + env.Append(CFLAGS = environ['CFLAGS'])
23 + env.Replace(CC = environ['CC'])
24 +
25 # Build the relaxation curve fitting module.
26 self.relax_fit_object = env.SharedLibrary(target=dir + path.sep + 'relax_fit', source=nodes, SHLIBPREFIX=prefix, SHLIBSUFFIX=suffix)
27

  ViewVC Help
Powered by ViewVC 1.1.13