diff options
| author | Jonathan Liu <net147@gmail.com> | 2016-02-26 19:20:45 +1100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-27 20:58:51 +0100 |
| commit | dc6360b0a1cad074c9d7c27940502ce74aa4337f (patch) | |
| tree | 564c13509ec612ac3864a3e2c6ea4304d1776876 | |
| parent | 6e51a6c10823618e5454aeccfb510835361234d5 (diff) | |
| download | meta-qt5-dc6360b0a1cad074c9d7c27940502ce74aa4337f.tar.gz | |
qtwebkit: backport patch to fix linking with qtwebkit
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0004-Fix-linking-with-libpthread.patch | 33 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit_git.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebkit/0004-Fix-linking-with-libpthread.patch b/recipes-qt/qt5/qtwebkit/0004-Fix-linking-with-libpthread.patch new file mode 100644 index 00000000..c5e6ac52 --- /dev/null +++ b/recipes-qt/qt5/qtwebkit/0004-Fix-linking-with-libpthread.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 5dd4bb67cfce812fd7686e43616e2069f354a7df Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | ||
| 3 | Date: Mon, 22 Feb 2016 10:57:32 +0100 | ||
| 4 | Subject: [PATCH] Fix linking with libpthread | ||
| 5 | |||
| 6 | WebKit use libpthread directly but is depending on other qt modules | ||
| 7 | causing it to be linked against, which might break unless -lpthread | ||
| 8 | is last. Instead just add it explicitly after the static libraries. | ||
| 9 | |||
| 10 | Upstream-Status: Backport from 5.7 branch | ||
| 11 | |||
| 12 | Change-Id: I2b95cff2c96373f8dce6f95052c4fccbe1982b33 | ||
| 13 | Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com> | ||
| 14 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
| 15 | --- | ||
| 16 | Tools/qmake/mkspecs/features/default_post.prf | 1 + | ||
| 17 | 1 file changed, 1 insertion(+) | ||
| 18 | |||
| 19 | diff --git a/Tools/qmake/mkspecs/features/default_post.prf b/Tools/qmake/mkspecs/features/default_post.prf | ||
| 20 | index 67276b7..39bb3f7 100644 | ||
| 21 | --- a/Tools/qmake/mkspecs/features/default_post.prf | ||
| 22 | +++ b/Tools/qmake/mkspecs/features/default_post.prf | ||
| 23 | @@ -201,6 +201,7 @@ needToLink() { | ||
| 24 | linkAgainstLibrary($$library, $$eval(WEBKIT.$${library_identifier}.root_source_dir)) | ||
| 25 | LIBS += $$eval(WEBKIT.$${library_identifier}.dependent_libs) | ||
| 26 | } | ||
| 27 | + posix:!darwin: LIBS += -lpthread | ||
| 28 | } | ||
| 29 | |||
| 30 | creating_module { | ||
| 31 | -- | ||
| 32 | 2.7.1 | ||
| 33 | |||
diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb index 9044d4fb..04cefada 100644 --- a/recipes-qt/qt5/qtwebkit_git.bb +++ b/recipes-qt/qt5/qtwebkit_git.bb | |||
| @@ -22,6 +22,7 @@ SRC_URI += "\ | |||
| 22 | file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \ | 22 | file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \ |
| 23 | file://0002-Remove-TEXTREL-tag-in-x86.patch \ | 23 | file://0002-Remove-TEXTREL-tag-in-x86.patch \ |
| 24 | file://0003-Exclude-backtrace-API-for-non-glibc-libraries.patch \ | 24 | file://0003-Exclude-backtrace-API-for-non-glibc-libraries.patch \ |
| 25 | file://0004-Fix-linking-with-libpthread.patch \ | ||
| 25 | " | 26 | " |
| 26 | 27 | ||
| 27 | PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel" | 28 | PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel" |
