Last active
January 6, 2022 00:21
-
-
Save ibndias/cb4d12148c38a48f134faeb60d026c5e to your computer and use it in GitHub Desktop.
How to build OpenSSL for RISCV using clang
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
#Adapted from | |
#https://github.com/openssl/openssl/issues/11073 | |
#How to add -fPIC | |
#https://stackoverflow.com/questions/2537271/compile-openssl-with-the-shared-option | |
#export CFLAGS=-fPIC | |
#or CFLAGS=-fPIC ./config shared --prefix=/your/path | |
./Configure linux-generic64 -DSOMEMACRO CC="clang -march=rv64g" | |
CC="clang -march=rv64g" make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment