Don't enable crashdumps by default. This build knob causes the build
to be done with debug symbols, which greatly increase the size of the
build, but this is all in vain because the executables and libraries
are subsequently stripped.
Build with debug symbols if WITH_DEBUG is set.
Build with -fstack-protector.
Only fetch unowinreg.dll when building the SDK.
Add three new options:
CRASHDUMP - Enable crashdumps, requires WITH_DEBUG
DBGUTIL - Enable assertions, object counting, and other
non-production runtime debugging.
DEBUG - Compile with -O0 for better debugability. The ports
framework also sets WITH_DEBUG.
Fold a couple long lines in the Makefile.
Fix editors/openoffice-4 build with clang 6.0.0 by compiling with
-std=gnu++98 since that was the default for the compilers historically
used for the build. It turns out that -std=c++98 does not work
because the vigra headers depend on LLONG_MAX and friends, which
are not defined without the GNU extensions.
Compensate for a recent poudriere change by overriding $HOME and
setting it to /tmp if $HOME is not writeable. Some of the test
code run during the build wants to use mkstemp() to create temporary
directories under $HOME, which does not work for the "nobody" user
which points $HOME at /nonexistent.
No PORTREVISION bump since this is a build fix and there is no
change to the package.
Reported by: jbeich