-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually compile libargon2 instead of using make
As the libargon2 Makefile shells out to `uname -s` and `uname -m`, it passes invalid linker flags when cross-compiling (as we're compiling for one OS but on a host machine that might use another). Instead of bending over backwards to work around this, abandon using their Makefile altogether and instead reproduce the specific logic we need, i.e. 1. Compile each of the core object files in a position independent way 2. Create a static archive of those object files This way, we only build what we need and hopefully in a way that is a static library on as many platforms as possible.
- Loading branch information
Showing
3 changed files
with
36 additions
and
18 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
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