| 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 |
|