diff options
-rw-r--r-- | backend/ninja/Ninja.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 3befe76..24ef72e 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -781,8 +781,8 @@ namespace backend { case Compiler::GCC: { - // TODO: Add flag to disable -ldl (dlopen, dlclose...) - result += " LINK_ARGS = '-Wl,--no-undefined,--as-needed' -ldl "; + // TODO: Add flag to disable -ldl and -lm (dlopen, dlclose, floor, max, ...) + result += " LINK_ARGS = '-Wl,--no-undefined,--as-needed' -ldl -lm "; break; } case Compiler::MSVC: @@ -848,7 +848,7 @@ namespace backend result += ".so: " + buildJob + " "; result += join(objectNames, " "); result += "\n"; - result += " LINK_ARGS = '-Wl,--no-undefined,--as-needed' -ldl "; + result += " LINK_ARGS = '-Wl,--no-undefined,--as-needed' -ldl -lm "; projectGeneratedBinary += "lib" + config.getPackageName() + ".so"; break; } |