Is linking code compiled with pkgsrc clang against system libpthread built by gcc supposed to work ? I'm getting a core dump that seems to be caused by an incorrect value returned by pthread_self(). This is on aarch64.