aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorTetralux <tetralux@teknik.io>2020-11-06 05:43:13 +0000
committerTetralux <tetralux@teknik.io>2020-11-06 20:44:11 +0000
commit140bb3ebfcfa7579e53e836c3fb75792efbed078 (patch)
tree5a81b76389b7138d92539688cc3de2762e25c3b6 /src/entity.cpp
parent6fab181c0d7f81432f25852b17187a7ce98b9167 (diff)
Fix -build-mode:shared type table on Unix
Fixes #527. Previously on Linux, '__$startup_runtime', the procedure that initializes the type table for runtime typeids, was NOT called when a shared library was loaded by the dynamic loader. This caused the library to not have its type table populated, which caused an assert to fail if you tried to use runtime typeids - like core:fmt, for example. This commit fixes this by calling ld instead of clang, when building a shared library, so that we can pass "-init '__$startup_runtime'" to it, when building a shared library. Try as I might, I could not get clang to correctly pass through the linker flags that I wanted.
Diffstat (limited to 'src/entity.cpp')
0 files changed, 0 insertions, 0 deletions