sqlite: fix AttributeError when +functions (#45327)

using self.compiler.cc_pic_flag here results in these errors:

==> sqlite: Executing phase: 'install'
==> Error: AttributeError: 'AutotoolsBuilder' object has no attribute 'compiler'

change it to self.pkg.compiler.cc_pic_flag instead.
This commit is contained in:
Andrew W Elble 2024-07-19 18:24:22 -04:00 committed by GitHub
parent fa8a512945
commit a6c638d0fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,7 +279,7 @@ def build_libsqlitefunctions(self):
libraryname = "libsqlitefunctions." + dso_suffix
cc = Executable(spack_cc)
cc(
self.compiler.cc_pic_flag,
self.pkg.compiler.cc_pic_flag,
"-lm",
"-shared",
"extension-functions.c",