Disable fatal linker warnings related to SQLite
PATCH 1/1 Disable fatal linker warnings related to SQLite
With the gold linker, problems with hidden sqlite3 symbols occur. Example:
warning: hidden symbol 'sqlite3_temp_directory' in obj/third_party/sqlite/libsqlite3.a (obj/third_party/sqlite/amalgamation/sqlite.sqlite3.o) is referenced by DSO /mnt/ramdisk/yocto/qemu-test-build/tmp//sysroots/qemux86/usr/lib/../lib/libsoftokn3.so
The problem is known, and a solution would be to set the build scripts to not build sqlite3 and use the system's sqlite3 library instead. However, currently, this is not possible:
https://code.google.com/p/chromium/issues/detail?id=22208
The Crosswalk project fixed this by setting the warnings to non-fatal:
https://github.com/crosswalk-project/crosswalk/commit/83d22586852a3d64300fd024e24ade9a4ac325be
The disable_fatal_linker_warnings GYP flag used in that commit is already part of Chromium 37. It just needs to be enabled. This commit does precisely that.
--- recipes-browser/chromium/chromium_37.0.2062.0.bb | 1 + 1 file changed, 1 insertion(+)
recipes-browser/chromium/chromium_37.0.2062.0.bb +1 -0
@@ -81,6 +81,7 @@ PACKAGECONFIG ??= "use-egl" PACKAGECONFIG[use-egl] = ",,virtual/egl virtual/libgles2" EXTRA_OEGYP = " \ + -Ddisable_fatal_linker_warnings=1 \ ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '', '-Dlinux_use_gold_binary=0', d)} \ ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '', '-Dlinux_use_gold_flags=0', d)} \ -I ${WORKDIR}/oe-defaults.gypi \
Signature · 1 line
1.8.3.2
Otavio Salvador
AppliedQuoted 14 lines · Carlos Rafael Giani
With the gold linker, problems with hidden sqlite3 symbols occur. Example:
warning: hidden symbol '
sqlite3_temp_directory' in obj/third_party/sqlite/libsqlite3.a (obj/third_party/sqlite/amalgamation/sqlite.sqlite3.o) is referenced by DSO/mnt/ramdisk/yocto/qemu-test-build/tmp//sysroots/qemux86/usr/lib/../lib/libsoftokn3.soThe problem is known, and a solution would be to set the build scripts to not build sqlite3 and use the system's sqlite3 library instead. However, currently, this is not possible:
https://code.google.com/p/chromium/issues/detail?id=22208
The Crosswalk project fixed this by setting the warnings to non-fatal:
Quoted 7 lines
https://github.com/crosswalk-project/crosswalk/commit/83d22586852a3d64300fd024e24ade9a4ac325be
The
disable_fatal_linker_warningsGYP flag used in that commit is already part of Chromium 37. It just needs to be enabled. This commit does precisely that.Signed-off-by Carlos Rafael Giani <[email protected]>
Applied.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750