Skip to content

Commit

Permalink
package/armadillo: fix static build
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Julien Olivain <[email protected]>
  • Loading branch information
passgat authored and jolivain committed Dec 12, 2024
1 parent e284c13 commit 73f0339
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/armadillo/armadillo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 73f0339

Please sign in to comment.