On Tue, Feb 12, 2019 at 09:49:23AM +0000, Jonathan Wakely wrote:
On that basis, why does gcc-c++ install libgomp and libgfortran?
I think gcc-c++ doesn't require libgfortran, gcc-gfortran does.
The reason to have libgomp in the dependencies was that it is a library that
isn't explicitly used on the command line, while to link against libatomic
you need to specify -latomic and so, like for any other random library you
need to make sure that the library is installed, one doesn't need to specify
-lgomp, simply linking with -fopenmp needs that library.
Though, I admit that the sanitizer libraries behave like libgomp, yet they
aren't required by default (on the other side, those are development
instrumentation libraries).
libatomic might be needed for some uses of std::atomic, but nothing
in
ISO C++ requires OpenMP or Fortran.
Jakub