aboutsummaryrefslogtreecommitdiff
path: root/science/py-PyFR/files/patch-pyfr_backends_openmp_compiler.py
blob: f77a4b146f77c212b31abc11a1b8a495c6b78dd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- pyfr/backends/openmp/compiler.py.orig	2018-03-19 21:34:24 UTC
+++ pyfr/backends/openmp/compiler.py
@@ -76,6 +76,8 @@ class SourceModule(object):
             '-Ofast',               # Optimise, incl. -ffast-math
             '-march=native',        # Use CPU-specific instructions
             '-fopenmp',             # Enable OpenMP support
+            '-I%%LOCALBASE%%/include',  # Add the include directory
+            '-L%%LOCALBASE%%/lib',  # Add the library directory
             '-fPIC',                # Generate position-independent code
             '-o', libname, srcname, # Library and source file names
             '-lm'                   # Link against libm