Skip to contentSkip to conversation

package/armadillo: fix static build

PATCH Applied Dario Binacchi 2 participants 2 messages Dec 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/armadillo/armadillo.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/armadillo/armadillo.mk +4 -0
index e2d7c3968f2a..0d2e85464f6a 100644
@@ -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))
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · Dario Binacchi

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

Applied to master, thanks.

Quoted 20 lines
---
 package/armadillo/armadillo.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/armadillo/armadillo.mk +4 -1
index e2d7c3968f2a..0d2e85464f6a 100644
@@ -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))
--

2.43.0

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot