File: debian_build_cfg

package info (click to toggle)
mrtrix3 3.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,300 kB
  • sloc: cpp: 130,470; python: 9,603; sh: 597; makefile: 62; xml: 47
file content (21 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (2)
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