in technical terms, in non-technical terms I just realized that a function in CMake that was supposed to check for PIE availability on the compiler, is not working correctly because it's not passing the
sysroot
, so it's deciding that PIE is not supported due to the link test that is doing which fails and therefore the final compilation doesn't use it.