maidsafe / rust_sodium

This crate is no longer maintained. Looking for maintainers.
BSD 3-Clause "New" or "Revised" License
77 stars 34 forks source link

Version change to 0.7.1 #54

Closed Fraser999 closed 6 years ago

Fraser999 commented 6 years ago

For non-Windows builds, if the CFLAGS environment variable was unset, it was being set to an empty string when calling ./configure on libsodium. This had the effect of switching off the default -O2 flag when make was subsequently called.

This PR not only explicitly adds -O2 to the CFLAGS environment variable, but ensures that unset environment variables aren't passed down to ./configure set to empty strings.

It also takes a similar approach to the --disable-pie argument, although the only way in which this affected the build (i.e. passing an empty string as an argument to ./configure) was to cause ./configure to generate a warning in stderr.