From: https://github.com/collectd/collectd/pull/390 The perl embed config is supplying incorrect flags to the linker. This patch is nearly correct and is needed for a successful build on Linux.