Open ffontaine opened 3 years ago
Guess I've been a bad maintainer since I hadn't noticed this until just now. What platform/compiler was this on?
This build failure was raised with LTO enabled. We had an interesting discussion on buildroot here: https://patchwork.ozlabs.org/project/buildroot/patch/20201224101440.3427472-1-fontaine.fabrice@gmail.com/
The conclusion of this discussion was:
However, the real question is: why does rebar add -fPIC during build but not during link? I think this is something that should be fixed at the level of rebar itself, not in individual packages.
So, feel free to close this PR if you think that this issue should be fixed in rebar.
@ffontaine Ah! Thanks for the quick update. I think I'm in agreement with you. I'll report it on the port_compiler plugin issue tracker.
Add -fPIC to avoid the following build failure:
Fixes:
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com