mimoo / disco-c

A tiny C cryptographic library to encrypt sessions, authenticate messages, sign, hash, etc. based only on SHA-3 and Curve25519
https://embeddeddisco.com/
Apache License 2.0
65 stars 3 forks source link

Fix compile issue #17

Closed dol closed 5 years ago

dol commented 5 years ago

Fixes the following compiler issue:

/usr/bin/ld: disco_symmetric.o: relocation R_X86_64_PC32 against undefined symbol `__asan_option_detect_stack_use_after_return' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:14: recipe for target 'disco.so' failed
make: *** [disco.so] Error 1

In addition .so files are ignored from version control.

mimoo commented 5 years ago

isn't this important only for building the final .so?

(Also I need to cleanup that Makefile to remove ASAN and other flags when not building to debug)