This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for installing the library to be optional.
This change makes it such that during bindgen, we will look for the library in build/. If the user chooses the move (or copy) it to the system default search paths then we will pick it up during runtime. If the user does _not_ move the library, (who would?) we must specify the rpath during linking phase. There are various ways to do this, either by `RUSTFLAGS=.. cargo build` or by creating a `./cargo/config` and specify per target the desired flags. Within the `config` file however, we can not anticipate the absolute path see: rust-lang/cargo#5077 Instead, Mayastor now has a Makefile that does this for people, so whoever wants to give it a swirl can do so without having to install "stuff" outside of the repo. Lastly, as people might want to use Ubuntu 18.04, the default in the Makefile is to not include ISA-L and crypto as those require a NASM version not available in 18.04 Signed-off-by: Jeffry Molanus <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
29 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