How can I compile libsodium statically using aarch64-elf #1328
Unanswered
MasterAwesome
asked this question in
Q&A
Replies: 3 comments 1 reply
-
What happens when the Even if it doesn't complete, it creates a |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you compile a minimal application? Put this into int main(void)
{
return 0;
} And try to compile with: aarch64-elf-gcc test.c Does that work? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Worst case scenario, you can do something like: find . -name '*.o' -exec rm -f {} \;
aarch64-elf-gcc $(find src/libsodium -type f -name '*.c') \
-I src/libsodium/include -I src/libsodium/include/sodium \
-I src/libsodium/include/sodium/private -Os -c
aarch64-elf-ar rcs libsodium.a $(find . -type f -name '*.o') But many symbols from libc may be missing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to compile for a target that has a compiler that can produce only static libraries, although automake seems to not like this since it tries to link a basic C program and I cannot run
./configure --host=aarch64-elf --disable-shared --enable-static <CC and other compiler variables>
The goal I'm trying to achieve is to have libsodium be a static library, my target does support libc (although unsure if libsodium depends on it).
Beta Was this translation helpful? Give feedback.
All reactions