diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-02-21 14:18:34 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 10:43:07 +0000 |
commit | 86be661fd6ae90abc5108c7cba56bdcefa812eab (patch) | |
tree | f408dd0de08bd59e902b8b7010172832db06194f | |
parent | 3cffd4842541d62fc7e4ea5811ab1898638c60fa (diff) | |
download | poky-86be661fd6ae90abc5108c7cba56bdcefa812eab.tar.gz |
gtk+3: Fix build failure with gold linker
Explicitly link in libfribidi
(From OE-Core rev: e1e7064746c892544cb3bb72b54791cec2818ffd)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3/link_fribidi.patch | 19 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3_3.24.5.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+3/link_fribidi.patch b/meta/recipes-gnome/gtk+/gtk+3/link_fribidi.patch new file mode 100644 index 0000000000..e4bbd799f1 --- /dev/null +++ b/meta/recipes-gnome/gtk+/gtk+3/link_fribidi.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Link with libfribidi, this is to avoid under linking where these functions are | ||
2 | used but the library is not linked in, and they are marked undefined by BFD linker | ||
3 | but gold linker refuses to link | ||
4 | |||
5 | | ./.libs/libgdk-3.so: error: undefined reference to 'fribidi_get_bidi_type' | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | Upstream-Status: Pending | ||
9 | |||
10 | --- a/gdk/Makefile.am | ||
11 | +++ b/gdk/Makefile.am | ||
12 | @@ -55,6 +55,7 @@ LDADD = \ | ||
13 | -version-info $(LT_VERSION_INFO) \ | ||
14 | -export-dynamic \ | ||
15 | -rpath $(libdir) \ | ||
16 | + -lfribidi \ | ||
17 | $(no_undefined) | ||
18 | |||
19 | # | ||
diff --git a/meta/recipes-gnome/gtk+/gtk+3_3.24.5.bb b/meta/recipes-gnome/gtk+/gtk+3_3.24.5.bb index 799cbd4707..92c9a3ebfb 100644 --- a/meta/recipes-gnome/gtk+/gtk+3_3.24.5.bb +++ b/meta/recipes-gnome/gtk+/gtk+3_3.24.5.bb | |||
@@ -6,6 +6,7 @@ SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk+/${MAJ_VER}/gtk+-${PV}.tar | |||
6 | file://0001-Hardcoded-libtool.patch \ | 6 | file://0001-Hardcoded-libtool.patch \ |
7 | file://0002-Do-not-try-to-initialize-GL-without-libGL.patch \ | 7 | file://0002-Do-not-try-to-initialize-GL-without-libGL.patch \ |
8 | file://0003-Add-disable-opengl-configure-option.patch \ | 8 | file://0003-Add-disable-opengl-configure-option.patch \ |
9 | file://link_fribidi.patch \ | ||
9 | " | 10 | " |
10 | SRC_URI[md5sum] = "32862355c08f6af3e7848c695cd4081b" | 11 | SRC_URI[md5sum] = "32862355c08f6af3e7848c695cd4081b" |
11 | SRC_URI[sha256sum] = "0be5fb0d302bc3de26ab58c32990d895831e2b7c7418d0ffea1206d6a3ddb02f" | 12 | SRC_URI[sha256sum] = "0be5fb0d302bc3de26ab58c32990d895831e2b7c7418d0ffea1206d6a3ddb02f" |