[Buildroot] [git commit branch/2019.11.x] package/kf5/kf5-kcoreaddons: don't treat ld warnings as errors
Peter Korsgaard
peter at korsgaard.com
Mon Dec 23 22:12:05 UTC 2019
commit: https://git.buildroot.net/buildroot/commit/?id=4e2d9876feb127c73407ca5776cf66507bf33f16
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.11.x
Microblaze ld emits warnings like:
'
FDE encoding in
CMakeFiles/KF5CoreAddons.dir/KF5CoreAddons_autogen/mocs_compilation.cpp.o(.eh_frame)
prevents .eh_frame_hdr table being created
'
Since '-Wl,--fatal-warnings' is passed by default, build fails, so don't
treat warnings as errors by appending "-Wl,--no-fatal-warnings" to
CMAKE_SHARED_LINKER_FLAGS that is previously defined in package
dependency kf5-extra-cmake-modules.
Fixes:
http://autobuild.buildroot.net/results/f19/f198c86930535c50393e17fc7a70fb4f27b096ee/
Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit cc53d5357d84ff9b78d76e45ce216061df8a37c1)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk b/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk
index 164bad1225..5b3e9acd90 100644
--- a/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk
+++ b/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk
@@ -21,4 +21,9 @@ endif
KF5_KCOREADDONS_CONF_OPTS = -DCMAKE_CXX_FLAGS="$(KF5_KCOREADDONS_CXXFLAGS)"
+ifeq ($(BR2_microblaze),y)
+# Microblaze ld emits warnings, make warnings not to be treated as errors
+KF5_KCOREADDONS_CONF_OPTS = -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-fatal-warnings"
+endif
+
$(eval $(cmake-package))
More information about the buildroot
mailing list