seebk/GIMP-Lensfun — pull request #8 by grahamwhiteuk (2013-04-19 08:17:23+00:00)
Title: Compilation now acts as expected, also introduces EXTRA_CXXFLAGS.

Fix compilation of object file by changing .c suffixes to .cpp suffixes so make actually runs our target to build the object file rather than its own default target. Also introduce EXTRA_CXXFLAGS for project specific settings that should *always* be included in a build but allows CXXFLAGS to be overridden at build time e.g. make CXXFLAGS="my preferred compile options"

The EXTRA_CXXFLAGS is important to get gimp-lensfun included in Fedora (see https://bugzilla.redhat.com/show_bug.cgi?id=951496 and probably other distributions). They enforce C and C++ programs to be built with a standard set of options by running something like:
make CXXFLAGS="%{optflags}"
This uses a macro to expand the standard Fedora compile options but with this patch now allows this override to take place successfully as we're still including essential options in the EXTRA_FLAGS.

Hope that makes sense?!?!?!?