From 6d3c3132bbc0421c42e587b869984fd39f0b35a2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 16 Feb 2020 02:06:56 +0100 Subject: Fix cmake build library dependency order --- backend/ninja/Ninja.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend') diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 69b480e..87370cf 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1295,6 +1295,8 @@ namespace backend projectGeneratedBinary += "/"; string noUndefinedFlag; +// TODO: This causes issues with -ldl in bgfx example, where dlclose symbol is not found even though it's linked with -ldl +#if 0 if(!onlyZigFiles) { bool isCompilerClangLike = (compilerType == RuntimeCompilerType::CLANG) || (compilerType == RuntimeCompilerType::EMSCRIPTEN); @@ -1303,6 +1305,7 @@ namespace backend else noUndefinedFlag = isCompilerClangLike ? "-Wl,-undefined,error" : "-Wl,--no-undefined,--as-needed"; } +#endif ninja::NinjaVariable zigObjectArgs("object_args"); string objectZigArgs; -- cgit v1.2.3