1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[meson] Link against shared quickjs library if available

alpine builds shared quickjs library.
This commit is contained in:
Witold Filipczyk 2023-12-27 19:53:20 +01:00
parent 2c7072e058
commit 24325a5714

View File

@ -597,7 +597,10 @@ if not compiler.links('''#include <stdint.h>
endif
if conf_data.get('CONFIG_QUICKJS')
quickjsdeps = compiler.find_library('quickjs/libquickjs', static: true, dirs: [get_option('prefix')+'/lib','/usr/local/lib'])
quickjsdeps = compiler.find_library('quickjs', static: st, required: false)
if not quickjsdeps.found()
quickjsdeps = compiler.find_library('quickjs/libquickjs', static: true, dirs: [get_option('prefix')+'/lib','/usr/local/lib'])
endif
deps += quickjsdeps
deps += dep_atomic
endif