This mirrors a change made to base gcc4.2 by martynas@ in 2014.
https://marc.info/?l=openbsd-ports&m=149656580518245&w=2
Includes an independent fix from upstream for gcc6, currently unlinked
from builds
Also, stop installing libssp as it broken on OpenBSD as it tries to use gets()
pirofti@ ok'd an earlier version, suggestions from sthen@
"doesn't look dangerous" espie@
"pretty astounding" deraadt@
search path to ${WRKDIR}/bin. Ensures that the ld wrapper script needed
for USE_WXNEEDED gets used (clang was ignoring it otherwise).
Rework ccache support and gcc4/clang MODULES to use the same wrapper
generator as above, setting up a list of command names (cc, c++, etc) and
destinations (egcc, eg++, etc) as the port is processed, and writing the
wrappers in one place in bsd.port.mk, with an optional wrapper (e.g.
ccache), and with an echo to make it clear on screen/in log which
compiler binaries were chosen (easier than inspecting the wrapper
scripts) and whether ccache is used.
Initial wrapper using -B from espie, ccache bits from me, discussed
with/ok espie. Been through a bulk on i386.
C functions have been modified to use same-size types on both sides.
There are no checks in gcc to make sure the types match, and it happily
trashes the stack or reads bogus data without this fix.
The C shim in gnatlib is still casting down to long (by design), thus
gnat is not 2038-proof on 32 bit architectures. Fixing this is an
ongoing project, but I'm running out of time for this release.
Getting the timezone offset is now supported; the unused usleep
procedure that snuck in from FreeBSD support got removed.
Tested on all supported architectures, plus new bootstraps due to the
stack trashing, just in case...
Conceptually fine with brad@
deraadt@ is unhappy with the partial solution, fixing this remains a
high priority todo
enable it through symlinks in ${WRKDIR}/bin/, which were effectively
overriden by gcc4.port.mk or clang.port.mk - thus lying that ccache was
used while it was not.
Still investigating for a good solution to actually enable ccache support
for non-base compilers.
okay juanfra@, sthen@
intermittent build problems. Exception style affects Ada only.
* Add better tasking support and sync OpenBSD specific changes from 4.8.
* Call __errno() from librthread when using pthreads (Tero Koskinen)
* Enable shared library support for OpenBSD (Tero Koskinen)
bulk tested by landry@ and sthen@
ok pascal@
sorry for the delay guys