George Koehler kernigh@gmail.com writes:
If the C compiler lacks __builtin_bswap64, then Nettle may call a function named __builtin_bswap64 and get a link error. The problem is that ./configure doesn't check for link errors. I append a small diff to switch from AC_TRY_COMPILE to AC_TRY_LINK.
Thanks, applied!
$ ../configure --disable-documentation \
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
$ gmake $ gmake check
(The --disable-documentation prevents an error from makeinfo 4.8, which seems too old. The FLAGS find gmp in /usr/local, because OpenBSD's compilers don't look there by default. gmake is GNU make.)
Does OpenBSBs runtime linker look in /usr/local/lib by default? The configure script also supports --with-lib-path=/usr/local/lib, which will add a -L flag and in addition attempt to guess the proper -R/-Wl,-rpath flags.
Regards, /Niels