diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-10 15:44:27 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-05-10 15:44:28 +0200 |
commit | 25cff9a2b16680046109c56361c96665b8b03105 (patch) | |
tree | 6a1f41947e43cd27deaa40e0d138d74ada4b9441 /backend/ninja | |
parent | f0fb772e6cd4b01066cf72267a69f59284eeb945 (diff) |
Link math library by default on gcc
Diffstat (limited to 'backend/ninja')
-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; } |