Do not add LD_LIBRARY_PATH to search path when not defined (#24411)
If LD_LIBRARY_PATH is not defined a blank "-L" is added to the link
command. This causes the next object to be linked to get treated as if
it was a search path and causes link failure.
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Co-authored-by: Andrew Davis <afd@ti.com>