fixincludes was changing the definition of
NULL on OpenBSD from
#ifndef NULL
#ifdef __GNUG__
#define NULL__null
#else
#define NULL((void *)0)
#endif
#endif
to
#ifndef NULL
#ifdef __GNUG__
#define NULL__null
#else
#define NULL 0
#endif
#endif
Posting the proposed fix from Mike in
The following lets -rdynamic work on OpenBSD.
Added to every OpenBSD target that defines LIB_SPEC.
Gerald Pfeifer has previously volunteered to apply my patches based
on maintainer approval.
2011-10-22 Jonathan Gray
* config/openbsd.opt (rdynamic): New Driver option.
* config