diff options
author | Niklas Hambüchen <mail@nh2.me> | 2019-07-02 22:30:15 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2019-07-03 04:32:25 +0200 |
commit | 717e821b99797845e1bef47d862f8cb0fb69cfc9 (patch) | |
tree | f7466b10447c98c248370f4ebb3791ad317c275e /perl/lib/Nix/SSH.pm | |
parent | 20129bd83d57316cc0b69bec7abeec43011c56d5 (diff) |
autoconf: Allow overriding CFLAGS/CXXFLAGS from outside.
As is normal for autoconf-based projects.
For example, it is a common use case to do
./configure CXXFLAGS=-O0
This did not work for nix until now, because the `CXXFLAGS=` declaration
would unconditionally erase what the user had specified.
The custom `OPTIMIZE` flag is removed, but the default `-O3` is retained;
autoconf would default to `-g -O2` by default otherwise as documented on:
https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/C-Compiler.html
https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/C_002b_002b-Compiler.html
Diffstat (limited to 'perl/lib/Nix/SSH.pm')
0 files changed, 0 insertions, 0 deletions