The issue happens because of configure processing "--disable-debug" as enable as well. To disable you just need to omit the debug switch in configure. I'll attach a patch to fix the issue.
Created attachment 217847 [details, diff] Patch to fix the issue.
Created attachment 225527 [details, diff] Patch for the package. Properly patch the autotools usage.
Created attachment 225529 [details, diff] Patch for the ebuild.
Created attachment 225599 [details, diff] Patch for the package Works for both cases
Committed -r1 to tree.