Skip to content

Commit

Permalink
Give up on linker, it's difficult
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Nov 12, 2024
1 parent c362142 commit f1e2ba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyop2/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def cxx(self):

@property
def ld(self):
return self._ld or petsc_variables["PCC_LINKER"]
return self._ld

@property
def cflags(self):
Expand Down Expand Up @@ -362,6 +362,8 @@ class LinuxClangCompiler(Compiler):
"""The clang for building a shared library on Linux systems."""
_name = "Clang"

_ld = "ld.lld"

_cflags = ("-fPIC", "-Wall", "-std=gnu11")
_cxxflags = ("-fPIC", "-Wall")
_ldflags = ("-shared", "-L/usr/lib")
Expand Down

0 comments on commit f1e2ba8

Please sign in to comment.