Skip to content

Commit

Permalink
enforce static libs, link pthread on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
phpisciuneri committed Mar 23, 2023
1 parent cae09fc commit 8811113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ cmake(
cache_entries = {
"CMAKE_PREFIX_PATH": "$EXT_BUILD_DEPS/openblas",
"OPENBLAS_PROVIDES_LAPACK": "true",
"BUILD_SHARED_LIBS": "false",
},
lib_source = "@net_sourceforge_projects_arma//:all-src",
linkopts = select({
"@bazel_tools//src/conditions:linux": ["-lpthread"],
}),
out_data_dirs = ["share"],
out_static_libs = select({
"@bazel_tools//src/conditions:linux": ["libarmadillo.a"],
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This leverages [rules_openblas](https://github.com/phpisciuneri/rules_openblas)
## Tested

- Windows 10
- Ubuntu 20.04.5 LTS

## Troubleshooting

Expand Down

0 comments on commit 8811113

Please sign in to comment.