updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / getfem++ / _getfem.so_linking_fix.patch
blob340e2ff3df9df3295a4761ab0c0df01644d1b83e
1 diff -Naur src/getfem-4.1.1/interface/src/python/setup.py src2/getfem-4.1.1/interface/src/python/setup.py
2 --- src/getfem-4.1.1/interface/src/python/setup.py 2011-08-23 05:45:22.855256113 -0400
3 +++ src2/getfem-4.1.1/interface/src/python/setup.py 2011-08-23 05:47:20.496960733 -0400
4 @@ -45,10 +45,18 @@
5 # '@GETFEM_STATICLIBS@'],
6 sources = ['getfem_python_c.c'])
8 -setup (name = 'getfem-interface',
9 - license='LGPL',
10 - version = '4.0',
11 - maintainer="Yves Renard",
12 - maintainer_email="Yves.Renard@insa-lyon.fr",
13 - description = "This is the getfem-python-interface module",
14 - ext_modules = [getfemmod])
15 +dist = setup (name = 'getfem-interface',
16 + license='LGPL',
17 + version = '4.0',
18 + maintainer="Yves Renard",
19 + maintainer_email="Yves.Renard@insa-lyon.fr",
20 + description = "This is the getfem-python-interface module",
21 + ext_modules = [getfemmod])
23 +os.remove('_getfem.so')
24 +try:
25 + iter(dist.command_obj['build_ext'].compiler.linker_so)
26 + dist.command_obj['build_ext'].compiler.linker_so = [i for i in dist.command_obj['build_ext'].compiler.linker_so if not '--as-needed' in i]
27 +except:
28 + pass
29 +dist.command_obj['build_ext'].build_extensions()