Fix linking for python with external ncurses (#45803)
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
parent
da079ed06f
commit
9d0b9f086f
@ -641,10 +641,11 @@ def configure_args(self):
|
||||
else:
|
||||
config_args.append("--without-system-expat")
|
||||
|
||||
if "+ctypes" in spec:
|
||||
config_args.append("--with-system-ffi")
|
||||
else:
|
||||
config_args.append("--without-system-ffi")
|
||||
if self.version < Version("3.12.0"):
|
||||
if "+ctypes" in spec:
|
||||
config_args.append("--with-system-ffi")
|
||||
else:
|
||||
config_args.append("--without-system-ffi")
|
||||
|
||||
if "+tkinter" in spec:
|
||||
config_args.extend(
|
||||
@ -668,6 +669,9 @@ def configure_args(self):
|
||||
if cflags:
|
||||
config_args.append("CFLAGS={0}".format(" ".join(cflags)))
|
||||
|
||||
if self.version >= Version("3.12.0") and sys.platform == "darwin":
|
||||
config_args.append("CURSES_LIBS={0}".format(spec["ncurses"].libs.link_flags))
|
||||
|
||||
return config_args
|
||||
|
||||
def configure(self, spec, prefix):
|
||||
|
Loading…
Reference in New Issue
Block a user