1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Change buildsystem setup for Debian
Forwarded: not-needed
Author: Michael Hanke <michael.hanke@gmail.com>
--- mrtrix3.orig/build
+++ mrtrix3/build
@@ -194,6 +194,15 @@
out += l + '\n'
return out
+# honor the environment
+try:
+ # the splitting is needed because the command is submitted as a list
+ # and we need individual options -- it may not be that simple though...
+ env_flags = os.environ['LDFLAGS'].split()
+ ld_flags.extend(env_flags)
+ ld_lib_flags.extend(env_flags)
+except:
+ pass
|