Skip to content

Instantly share code, notes, and snippets.

@ibndias
Last active January 6, 2022 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndias/cb4d12148c38a48f134faeb60d026c5e to your computer and use it in GitHub Desktop.
Save ibndias/cb4d12148c38a48f134faeb60d026c5e to your computer and use it in GitHub Desktop.
How to build OpenSSL for RISCV using clang
#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