-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workspace] Upgrade nlopt_internal to latest release v2.9.1 (#22257)
* [workspace] Upgrade nlopt_internal to latest release v2.9.1 --------- Co-authored-by: Rick Poyner <[email protected]>
- Loading branch information
1 parent
f12b3a6
commit 1f1c684
Showing
5 changed files
with
32 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
tools/workspace/nlopt_internal/patches/remove_luksan.patch
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
tools/workspace/nlopt_internal/patches/upstream/repair_luksan_config.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Repair NLopt's configuration scheme for the Luksan dependency. | ||
|
||
That library is licensed under LGPL-2.1+ but the rest of NLopt is | ||
licensed under MIT or similar notice-only licenses, and we really | ||
don't want to distribute this code using dynamic linking. | ||
|
||
Recent versions of NLopt offer a configuration setting to remove Luksan, | ||
but the piece shown below is missing. | ||
|
||
This patch should probably be upstreamed. | ||
|
||
|
||
--- nlopt_config.h.in | ||
+++ nlopt_config.h.in | ||
@@ -129,6 +129,9 @@ | ||
/* Define if compiled including C++-based routines */ | ||
#cmakedefine NLOPT_CXX | ||
|
||
+/* Define if using LGPL Luksan solvers */ | ||
+#cmakedefine NLOPT_LUKSAN | ||
+ | ||
/* Define to empty if `const' does not conform to ANSI C. */ | ||
#undef const | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters