Are the search paths for libraries the same as linker scripts exactly? Does the current directory is the first directory which is searched for libraries? When we use -Ldir, it adds a directory to search but where? after current directory and before system directories? or after system directories? Current directory is searched first for hear files? The manual does not explain search paths clearly in one section.