stoken-dev / stoken

RSA SecurID-compatible software token for Linux/UNIX systems
http://stoken.sf.net
GNU Lesser General Public License v2.1
405 stars 78 forks source link

fix build in new travis trusty environment #39

Closed mtmiller closed 6 years ago

mtmiller commented 6 years ago

The default Travis environment has been upgraded to Ubuntu trusty. It also includes clang 3.9 instead of the default clang that comes from the distro. This breaks building with tomcrypt 1.17, so add a -DLTC_NO_ROLC compiler flag to work around the problems in the headers.

This is only done for the Travis build script, I think it's fair to not bother adding an autoconf check to try to address this automatically. If someone is building with a new clang and an old tomcrypt, they should be able to pass the option if needed.

mtmiller commented 6 years ago

I managed to muck around with the macOS build and get it working again, for now. Please merge this, or let me know if you want to see me fix things differently. But without this the CI is totally broken.