<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64175>64175</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            hexagon-unknown-linux-musl: library paths ignored
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:driver
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            androm3da
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          androm3da
      </td>
    </tr>
</table>

<pre>
    `clang` will ignore library paths specified by `-L` when using `hexagon-unknown-linux-musl`.

        $ ./bin/clang --target=hexagon-unknown-linux-musl  -o tprog tprog.o -L/tmp -###
 ...
        clang: warning: argument unused during compilation: '-L/tmp' [-Wunused-command-line-argument]
 "/local/mnt/workspace/install/clang-latest/bin/ld.lld" "-z" "relro" "-o" "tprog" "-dynamic-linker=/lib/ld-musl-hexagon.so.1" "/usr/lib/crt1.o" "-L/usr/lib" "tprog.o" "-lclang_rt.builtins-hexagon" "-lc"

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U02P4yAM_TXOBYEoJGlzyKGjKqe573EFgabsEIj4mE7316_y1WpW2o0iYjn2e_bDFjGawWndQvUGjAmngh-5EsAYVJdC5HTzoX26C-nVo4Wa9la4AWqK7sZaZAbng0bWyCDCA00i3SKKk-7N1WiF5ANBTfH7En_TDuVo3DD7bvpLDN7h7D6cvztsjctfeMzRQk0J0AvQ83qi7QFWIgKsk8YB65YyEMZJhEEn4Jd_AyKEPUpT8MN6Eo_wO7AujRPCwPj2rmSEkO-0a7_8jO4iOLOaIgx51C6h7HLUCqkc5rZ6P07GimS8m6OAHXceYEcE1Rv-sSbg3o-jcGouUuMdDarLRj3fAeus74UF1o0uAevuPnzESfQaWGdcTMLaXQZsRdIxPbWxilirgLEZCP_ejKBt8LtzNxZBdqd6ODGafq7qQwfglxnLyAVxURJvIpPoyWHLAtblGJ6RfUgH8qR5__73RfkKsUsLP0MiMhubjIs7yytiplmUKVTLVcMbUej2UDe0bCg9NsWtpWV1uoq-Okl2OJVUyuuhrHXNq1PDZMOOhWkZZZwe2ZFRXvKGlEpWktcl51pd-6uAkupRGEus_RyJD0NhYsy6rcvDsSqskNrGbVf2kVDBfOqwLUxo50Qs8xChpNbEFF9QySSr2__MPD__tUPrYqkiB9veUpoi8DOwDlg3mHTLkvR-nGW1n_sHT8H_0v08BkvlEVi3FP8nAAD__-IxOF0">