debian/patches/cflags_soabi_in_jit_signature.patch
raw| 1 | --- a/ffc/jitcompiler.py |
| 2 | +++ b/ffc/jitcompiler.py |
| 3 | @@ -28,6 +28,7 @@ |
| 4 | # Python modules |
| 5 | import os |
| 6 | import sys |
| 7 | +import sysconfig |
| 8 | from hashlib import sha1 |
| 9 | |
| 10 | # FEniCS modules |
| 11 | @@ -172,6 +173,8 @@ |
| 12 | get_ufc_signature(), |
| 13 | get_ufc_templates_signature(), |
| 14 | kind, |
| 15 | + sysconfig.get_config_var("CFLAGS"), |
| 16 | + sysconfig.get_config_var("SOABI") |
| 17 | ] |
| 18 | string = ";".join(signatures) |
| 19 | signature = sha1(string.encode('utf-8')).hexdigest() |