FB2 Input: Fix a regression in 6.0 that broke conversion of FB2 on macOS. Fixes #1982743 [failed to convert fb2](https://bugs.launchpad.net/calibre/+bug/1982743)

This commit is contained in:
Kovid Goyal 2022-07-27 12:12:51 +05:30
parent 11345abc31
commit 28070b6661
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -73,7 +73,7 @@ def compile_launcher_lib(contents_dir, gcc, base, pyver, inc_dir):
# crashes if the system libxml2 is loaded. Loading plugins like the Qt # crashes if the system libxml2 is loaded. Loading plugins like the Qt
# ones or usbobserver causes it to be loaded. So pre-load our libxml2 # ones or usbobserver causes it to be loaded. So pre-load our libxml2
# to avoid it. # to avoid it.
cmd += ['-L', f'{PREFIX}/lib', '-l', 'xml2'] + \ cmd += ['-L', f'{PREFIX}/lib', '-l', 'xml2', '-l', 'xslt',] + \
['-install_name', ['-install_name',
'@executable_path/../Frameworks/' + os.path.basename(dest)] + \ '@executable_path/../Frameworks/' + os.path.basename(dest)] + \
[('-F%s/python' % PREFIX), '-framework', 'Python', '-framework', 'CoreFoundation', '-headerpad_max_install_names'] [('-F%s/python' % PREFIX), '-framework', 'Python', '-framework', 'CoreFoundation', '-headerpad_max_install_names']