Subject: | c++ compiler on FreeBSD 10 |
On FreeBSD 10 g++ is not installed anymore by default, but the (largely compatible) clang++ instead. This means build fails on these systems:
...
g++ -c -I/usr/local/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -DVERSION=\"1.0.2\" -DXS_VERSION=\"1.0.2\" -DPIC -fPIC "-I/usr/perl5.20.1Dp/lib/5.20.1/amd64-freebsd-ld/CORE" Plotter.c
g++: not found
*** Error code 127
...
Best is to either use "c++" instead of "g++" (which should work for both gcc and clang based systems), or to have a special switch for FreeBSD 10 and newer (note that FreeBSD 9 and older has gcc in the default install).