Fix the RUN_IN_BUILD_ENV build macro, which sets LD_LIBRARY_PATH
on other platforms. On Windows, the only way to influence this
search path using an environment variable is via PATH - so we're
now prepending the source tree libpcp[_pmda] locations onto that
which seems to work.
Also made -D_GNU_SOURCE only set on Linux, its not appropriate
as a global flag on any other platform we currently support.
Fix the RUN_IN_BUILD_ENV build macro, which sets LD_LIBRARY_PATH
on other platforms. On Windows, the only way to influence this
search path using an environment variable is via PATH - so we're
now prepending the source tree libpcp[_pmda] locations onto that
which seems to work.
Also made -D_GNU_SOURCE only set on Linux, its not appropriate
as a global flag on any other platform we currently support.