From 73f03390643c1a3d36f8e5e87a236df917526987 Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Thu, 12 Dec 2024 08:34:49 +0100 Subject: [PATCH] package/armadillo: fix static build By default, the library is generated as shared. Therefore, if BR2_STATIC_LIBS is selected, let's require the creation of a static library. Fixes: - https://autobuild.buildroot.org/results/fdaf2028b97f60bc01d22d3caeb9a6432d92b598 Signed-off-by: Dario Binacchi Signed-off-by: Julien Olivain --- package/armadillo/armadillo.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/armadillo/armadillo.mk b/package/armadillo/armadillo.mk index e2d7c3968f2a..0d2e85464f6a 100644 --- a/package/armadillo/armadillo.mk +++ b/package/armadillo/armadillo.mk @@ -30,4 +30,8 @@ ARMADILLO_CONF_OPTS += -DLAPACK_FOUND=ON ARMADILLO_DEPENDENCIES += lapack endif +ifeq ($(BR2_STATIC_LIBS),y) +ARMADILLO_CONF_OPTS += -DSTATIC_LIB=ON +endif + $(eval $(cmake-package))