    % scons -Q --debug=findlibs
      findlibs: looking for 'libfoo.a' in 'libs1' ...
      findlibs: ... FOUND 'libfoo.a' in 'libs1'
      findlibs: looking for 'libfoo.so' in 'libs1' ...
      findlibs: looking for 'libfoo.so' in 'libs2' ...
      findlibs: looking for 'libbar.a' in 'libs1' ...
      findlibs: looking for 'libbar.a' in 'libs2' ...
      findlibs: ... FOUND 'libbar.a' in 'libs2'
      findlibs: looking for 'libbar.so' in 'libs1' ...
      findlibs: looking for 'libbar.so' in 'libs2' ...
    cc -o prog.o -c prog.c
    cc -o prog prog.o -Llibs1 -Llibs2 -lfoo -lbar