Fix problems revealed by syntax checker cppcheck. Verify build with clang compiler.
Don't play with CFLAGS and fix ld invocation
Hi Pacho, I tried the GSPICEUI_GENTOO flag idea which worked but after some more head scratching I've come up with what I think is a better solution. This has been commited to the SVN. Hopefully this resolves all your problems. The variable CXX can now be set on the command line. The variable CXXFLAGS can also be set on the command line. (Project specific flags are then appended.) References to LD are no longer present in the Makefile. CXX is used to do the linking so why refer to LD? Eg. : The following...
=Allow the compiler and options to me specified on the command line when make is run
Yes this is a major problem that I also encountered. In spite of my best efforts I haven't been able to overcome this problem and it has held up on-going development. Fortunately with the latest release of wxWidgets (v3.2.81) and GTK3 the problems have gone away. It was looking like a problem with the libraries but it was difficult to prove to myself. Anyway all's well that ends well. I'm now going to close this bug. Thanks for the feedback.
With wxWidgets 3.2, warning `/usr/src/debug/wxWidgets-3.2.0/src/common/sizer.cpp(2267): assert "CheckSizerFlags(!((flags) & (wxALIGN_RIGHT)))" failed in DoInsert(): wxALIGN_RIGHT will be ignored in this sizer: only vertical alignment flags can be used in horizontal sizers` shows up very prominently.
Yes this is a major problem that I also encountered. In spite of my best efforts I haven't been able to overcome this problem and it has held up on-going development. Fortunately with the latest release of wxWidgets (v3.2.81) and GTK3 the problems have gone away. It was looking like a problem with the libraries but it was difficult to prove to myself. Anyway all's well that ends well. I'm now going to close this bug.
wxWidgets 3.2 `Makefile` adaptions.