Revert "Remove -rdynamic"

This reverts commit 516a781627ebb0c063f11ec0636249f76a41b8c7.