Skip to content

Commit ab98a87

Browse files
committed
attempt to fix linking on linux
1 parent 86cdfa1 commit ab98a87

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ endif
88

99
dependencies = []
1010

11-
dependencies += python.dependency()
1211
dependencies += dependency('fftw3', version: '>= 3.0.0', required: true)
1312

1413
py_link_args = []
@@ -17,7 +16,10 @@ if host_machine.system() == 'darwin'
1716
# The unresolved symbols will be resolved once the Python interpreter loads libpyorbit.
1817
# The linker on MacOS is a bit more strict, so we need to explicitly tell it that
1918
# symbols from libpython will be nont resolvable for now.
19+
dependencies += python.dependency()
2020
py_link_args += ['-Wl,-undefined,dynamic_lookup']
21+
else
22+
dependencies += python.dependency(embed : true)
2123
endif
2224

2325
# Detecting if MPICH or OPENMPI are installed and enabling support if present

0 commit comments

Comments
 (0)