diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2021-12-10 14:36:20 -0600 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2021-12-10 14:39:32 -0600 |
commit | e6f5aeddaf1655f5fb55cc50541c10f814dc14d1 (patch) | |
tree | 50352263d032f154e2008440825cf6fc95c72914 /emulators/qemu/files/patch-meson.build | |
parent | graphics/digikam: add upstreams akonadi-21.12 compability patch (diff) |
emulators/qemu: Use system dtc from ports
- elf2dmp depends on CURL [1]
- Fix build when fusefs-libs3 is installed [2]
PR: 260315 [2]
Reported by: kostikbel@gmail.com [1] d8zNeCFG@aon.at [2]
Diffstat (limited to 'emulators/qemu/files/patch-meson.build')
-rw-r--r-- | emulators/qemu/files/patch-meson.build | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/emulators/qemu/files/patch-meson.build b/emulators/qemu/files/patch-meson.build new file mode 100644 index 000000000000..5359dd16ef0e --- /dev/null +++ b/emulators/qemu/files/patch-meson.build @@ -0,0 +1,20 @@ +--- meson.build.orig 2021-12-10 18:55:23 UTC ++++ meson.build +@@ -1901,14 +1901,10 @@ fdt_opt = get_option('fdt') + if have_system + if fdt_opt in ['enabled', 'auto', 'system'] + have_internal = fs.exists(meson.current_source_dir() / 'dtc/libfdt/Makefile.libfdt') +- fdt = cc.find_library('fdt', kwargs: static_kwargs, ++ fdt = cc.find_library('fdt', kwargs: static_kwargs, dirs: '/usr/local/lib/', + required: fdt_opt == 'system' or +- fdt_opt == 'enabled' and not have_internal) +- if fdt.found() and cc.links(''' +- #include <libfdt.h> +- #include <libfdt_env.h> +- int main(void) { fdt_check_full(NULL, 0); return 0; }''', +- dependencies: fdt) ++ fdt_opt == 'enabled' ) ++ if fdt.found() + fdt_opt = 'system' + elif have_internal + fdt_opt = 'internal' |