--expensive-hardening makes configure check for curve25519-donna-c64 to fail
On FreeBSD 10.3 the error message is:
# cc -o conftest -O2 -pipe -fstack-protector -fno-strict-aliasing -static -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -fasynchronous-unwind-tables -Is
rc/common -Wl,-rpath,/usr/local/lib -fstack-protector x.c -lpthread -lexecinfo
/tmp/x-85cb71.o: In function `asan.module_ctor':
x.c:(.text+0x65): undefined reference to `__asan_init_v3'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Another failure in configure phase 'checking size of int8_t... 0' makes it to fail entirely.
Sanitizer options are causing this.
expensive-hardening isn't normally enabled by the port. I tried to enable it and ran into this problem.
To reproduce: in FreeBSD port security/tor add this line 'CONFIGURE_ARGS+=--enable-expensive-hardening' and run make.