package/kf5-kcoreaddons: fix check-package warnings
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 22 Dec 2019 09:51:19 +0000 (10:51 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 22 Dec 2019 09:57:14 +0000 (10:57 +0100)
KF5_KCOREADDONS_CONF_OPTS is set both outside and inside the
conditional block, so the value set outside would be lost if
the condition were to be true.

Use append-assignement in this case, as reported by check-package.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk

index 5b3e9acd90ca1c98d42e09dc694e4a5bdf9a285b..76be8876cc57b9bb2b6dd6de3a0609a726b705e9 100644 (file)
@@ -23,7 +23,7 @@ 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"
+KF5_KCOREADDONS_CONF_OPTS += -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-fatal-warnings"
 endif
 
 $(eval $(cmake-package))