summaryrefslogtreecommitdiffstats
path: root/x11-libs/cairo/patches/0001-Fix-build-against-binutils-2.39.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/cairo/patches/0001-Fix-build-against-binutils-2.39.patch')
-rw-r--r--x11-libs/cairo/patches/0001-Fix-build-against-binutils-2.39.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-libs/cairo/patches/0001-Fix-build-against-binutils-2.39.patch b/x11-libs/cairo/patches/0001-Fix-build-against-binutils-2.39.patch
new file mode 100644
index 0000000000..f7551e3f18
--- /dev/null
+++ b/x11-libs/cairo/patches/0001-Fix-build-against-binutils-2.39.patch
@@ -0,0 +1,29 @@
+diff --git a/meson.build b/meson.build
+index 970f49a52..14736e12e 100644
+--- a/meson.build
++++ b/meson.build
+@@ -720,7 +720,9 @@ endif
+ bfd_dep = cc.find_library('bfd', has_headers: ['bfd.h'], required: get_option('symbol-lookup'))
+ if bfd_dep.found() and \
+ cc.has_function('bfd_openr', dependencies: [bfd_dep]) and \
+- cc.links(files('meson-cc-tests/bfd-section-flags.c'), name: 'bfd_section_flags', dependencies: bfd_dep)
++ cc.links(files('meson-cc-tests/bfd-section-flags.c'),
++ args: ['-DPACKAGE=cairo -DPACKAGE_VERSION="@0@"'.format(meson.project_version()),],
++ name: 'bfd_section_flags', dependencies: bfd_dep)
+ conf.set('HAVE_BFD', 1)
+ deps += [bfd_dep]
+ elif get_option('symbol-lookup').enabled()
+diff --git a/util/cairo-trace/meson.build b/util/cairo-trace/meson.build
+index c4a504759..d90a994ea 100644
+--- a/util/cairo-trace/meson.build
++++ b/util/cairo-trace/meson.build
+@@ -12,7 +12,8 @@ libcairotrace = library('cairo-trace', cairo_trace_sources,
+ include_directories: [incbase, incsrc],
+ dependencies: deps,
+ link_args: extra_link_args,
+- c_args: ['-DSHARED_LIB_EXT="@0@"'.format(shared_lib_ext),] + pthread_c_args,
++ c_args: ['-DSHARED_LIB_EXT="@0@"'.format(shared_lib_ext),
++ '-DPACKAGE=cairo -DPACKAGE_VERSION="@0@"'.format(meson.project_version()),] + pthread_c_args,
+ install: true,
+ install_dir: join_paths(get_option('prefix'), get_option('libdir'), 'cairo'),
+ )