liblinear
liblinear copied to clipboard
Makefile should use CXXFLAGS when calling CXX
The Makefile passes $(CFLAGS) to $(CXX). It should pass $(CXXFLAGS) instead.
Furthermore, it defines its own CFLAGS, rather than honoring flags the user might supply when invoking make. This causes the build to fail if the user wants to supply flags that are required for the build to succeed.
This was discovered because liblinear is included in nmap. See the nmap bug report here: https://github.com/nmap/nmap/issues/1161 and the MacPorts project's bug report here: https://trac.macports.org/ticket/53995