Skip to content

Set the runtime path when building ninja

Rhys Poulton requested to merge rhys.poulton/PackageBuild:set_ninja_rpath into master

This merge request resolves #7 (closed).

When building ninja with an updated GCC compiler in a non-standard location it will throw an error saying that it cannot find some library symbols when linking the executable e.g.:

./ninja: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./ninja)
./ninja: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./ninja)
./ninja: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./ninja)

This has now been managed by setting the runtime path in the LDFLAGS when building ninja.

Edited by Rhys Poulton

Merge request reports