Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/french/aster/files/patch-check_compilers.py
16461 views
1
--- check_compilers.py.orig 2019-10-01 12:45:34 UTC
2
+++ check_compilers.py
3
@@ -215,7 +215,7 @@ class CONFIGURE_COMPILER:
4
opt_env.append('')
5
6
self.cfg['OPT_ENV'] = os.linesep.join(opt_env)
7
- self.AddToEnv(self.cfg['OPT_ENV'], verbose=False)
8
+ self.AddToEnv(self.cfg['OPT_ENV'], verbose=True)
9
10
def after_compilers(self):
11
"""After searching compilers, this allows to add libs to search
12
@@ -419,8 +419,7 @@ class GNU_COMPILER(CONFIGURE_COMPILER):
13
def after_compilers(self):
14
"""Define libs to search."""
15
# prefer always libstdc++.so to the static one
16
- self.libs.extend([('math', 'lapack'), ('math', 'blas'),
17
- ('cxx', ['libstdc++' + self._ext_shared, 'libstdc++' + self._ext_static]),])
18
+ self.libs.extend([('math', 'lapack'), ('math', 'blas'),])
19
20
def add_on(self):
21
"""After searching compilers, libs... search again other bin or lib."""
22
@@ -813,7 +812,7 @@ class COMPILER_MANAGER:
23
"""Return config dict."""
24
return self.config.get(product, self.config.get('__main__')).cfg
25
26
- def switch_in_dep(self, dependency_object, product, system=None, verbose=False):
27
+ def switch_in_dep(self, dependency_object, product, system=None, verbose=True):
28
"""Change 'cfg' attribute of the dependency_object.
29
"""
30
__dbgsw = False
31
@@ -921,7 +920,7 @@ class COMPILER_MANAGER:
32
cfg['OPT_ENV'] += compiler_cfg.get('OPT_ENV', '')
33
cfg['OPT_ENV'] = cfg['OPT_ENV'].strip()
34
if system:
35
- system.AddToEnv(cfg['OPT_ENV'], verbose=False)
36
+ system.AddToEnv(cfg['OPT_ENV'], verbose=True)
37
if __dbgsw:
38
print(' new=%s' % cfg['OPT_ENV'])
39
40
41