From f1e2ba827da9836fc60a307fe6b0f770f10a9397 Mon Sep 17 00:00:00 2001 From: Jack Betteridge Date: Tue, 12 Nov 2024 15:07:21 +0000 Subject: [PATCH] Give up on linker, it's difficult --- pyop2/compilation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyop2/compilation.py b/pyop2/compilation.py index ccb7aa8207..76ccbb38a7 100644 --- a/pyop2/compilation.py +++ b/pyop2/compilation.py @@ -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): @@ -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")