llvm: strip system libraries from link arguments
llvm: strip system libraries from link arguments

v2: - use clang and gcc's -print-system-libs option as suggested by
      Daniel Stone.

Fixes #2437

trhd/meson,QuLogic/meson,MathieuDuponchelle/meson,ernestask/meson,mesonbuild/meson,becm/meson,becm/meson,mesonbuild/meson,jpakkane/meson,ernestask/meson,pexip/meson,jeandet/meson,jeandet/meson,MathieuDuponchelle/meson,pexip/meson,jpakkane/meson,ernestask/meson,trhd/meson,jeandet/meson,becm/meson,trhd/meson,ernestask/meson,jeandet/meson,pexip/meson,MathieuDuponchelle/meson,becm/meson,jeandet/meson,becm/meson,MathieuDuponchelle/meson,QuLogic/meson,trhd/meson,becm/meson,QuLogic/meson,jpakkane/meson,mesonbuild/meson,jeandet/meson,ernestask/meson,thiblahute/meson,jpakkane/meson,pexip/meson,becm/meson,thiblahute/meson,pexip/meson,jeandet/meson,trhd/meson,jpakkane/meson,QuLogic/meson,ernestask/meson,trhd/meson,thiblahute/meson,mesonbuild/meson,jpakkane/meson,jeandet/meson,MathieuDuponchelle/meson,ernestask/meson,mesonbuild/meson,jpakkane/meson,pexip/meson,QuLogic/meson,MathieuDuponchelle/meson,becm/meson,mesonbuild/meson,mesonbuild/meson,MathieuDuponchelle/meson,QuLogic/meson,MathieuDuponchelle/meson,pexip/meson,QuLogic/meson,thiblahute/meson,QuLogic/meson,mesonbuild/meson,thiblahute/meson,ernestask/meson,becm/meson,MathieuDuponchelle/meson,becm/meson,thiblahute/meson,QuLogic/meson,trhd/meson,jeandet/meson,thiblahute/meson,mesonbuild/meson,mesonbuild/meson,ernestask/meson,pexip/meson,pexip/meson,thiblahute/meson,trhd/meson,thiblahute/meson,jpakkane/meson,jpakkane/meson,pexip/meson,trhd/meson