brandt/symlinks

Broken symlinks generated when operating on a symlinked directory

sirspudd opened this issue · 1 comments

(Top of the morning and thanks for the useful tool(great for cross compilation))

Passing a directory which is itself a symlink as an argument results in the generation of broken symlinks.

On many modern Linux systems, /lib is a symlink to /usr/lib, hence running ./symlinks -c /lib generated relative symlinks in the form ../usr/lib/libfoo, which is a problem since /lib is actually /usr/lib and ../usr/lib is /usr/usr/lib.

I guess my pull-request from 2015 should fix exactly this problem: #2