micro-ecc icon indicating copy to clipboard operation
micro-ecc copied to clipboard

fix compile of test/test_ecdsa_deterministic on OS X

Open mringwal opened this issue 8 years ago • 1 comments

The test uses SHA256 from openssl. This changes adds -lcryto to the ldflags

Error without the fix: Undefined symbols for architecture x86_64: "_SHA256_Final", referenced from: _finish_SHA256 in test_ecdsa_deterministic.o "_SHA256_Init", referenced from: _init_SHA256 in test_ecdsa_deterministic.o "_SHA256_Update", referenced from: _update_SHA256 in test_ecdsa_deterministic.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

mringwal avatar Apr 13 '17 09:04 mringwal

Hmm, I haven't looked at 'static' branch in a long time. I'd prefer to just rename the test to "test_ecdsa_deterministic.c.example" (like I did in master branch) rather than require linking against OpenSSL.

kmackay avatar May 21 '17 17:05 kmackay