When using a compiler other than the system compiler, it is necessary to set some linker flags to the correct C++ standard libraries. This also applies to 3rd party dependencies.
Therefore, it is necessary to pass the linker flags through to the external projects.
With these changes, linker flags can be passed on the command line and all dependencies + bear will be linked correctly, e.g.:
When using a compiler other than the system compiler, it is necessary to set some linker flags to the correct C++ standard libraries. This also applies to 3rd party dependencies.
Therefore, it is necessary to pass the linker flags through to the external projects. With these changes, linker flags can be passed on the command line and all dependencies + bear will be linked correctly, e.g.:
works for CentOS/Redhat with a non-system compiler installed at $GCC_PATH.