Skip to content

Commit

Permalink
Always link OSQP to avoid finding symbols from other libraries (Robot…
Browse files Browse the repository at this point in the history
…Locomotion#11682)

* Always link OSQP to avoid finding symbols from other libraries
  • Loading branch information
sammy-tri authored Jun 20, 2019
1 parent 834d154 commit 4ff9a15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/workspace/osqp/package.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ cc_library(
"-w",
],
linkstatic = 1,
# Always link all of OSQP. It includes an implementation of
# SuiteSparse_malloc internally which it needs to be able to find.
# Without this flag, in some circumstances applications linking to
# both OSQP and SCS can end up using the SuiteSparse_malloc from
# the SCS shared library, which has an incompatible signature.
# This ends badly.
alwayslink = 1,
deps = [
"@qdldl",
],
Expand Down

0 comments on commit 4ff9a15

Please sign in to comment.