- on x86 it builds a TEXTREl object, filtering PIE; why at all?
- it fails to properly account for ldflags;
- it filters --as-needed rather than PASSING THE LIBRARIES IN THE CORRECT ORDER;
I'm tempted to kill it with fire, let's instead consider fixing it properly, shall we?
Created attachment 258174 [details]
Diff from ebuild in tree
Diff from the build in the tree. I tested this (with the patch to follow) on x86. _PLEASE_ test on amd64. I had I to use some assembly magic to make it play nice on x86. It should not affect the amd64 version, however, I don't trust any code I write.
New patch to follow.
Created attachment 258175 [details]
New patch for some magic assembly
My assembly is decent, but it's by no means the best. I'm fairly sure this fixes things. I know it compiles on x86. Hope it helps.
Created attachment 258177 [details]
Pretty sure you already have this under control Tommy. But this will add the missing library into the mix.
Created attachment 258178 [details]
Improved assembly fix.
Changed #else to #elseif __i386__. Thanks for the catch Diego.
Fixed with 0.6.4-r3