Is it inefficient to have symbolic links to symbolic links?

Posted by Ogre Psalm33 on Super User See other posts from Super User or by Ogre Psalm33
Published on 2011-02-03T21:02:50Z Indexed on 2011/02/03 23:28 UTC
Read the original article Hit count: 214

Filed under:
|
|

We're setting up a series of Makefiles where we want to have a project-level include directory that will have symbolic links to sub-project-level include files. Many sub-project developers have chosen to have their include files also be symbolic links to yet another directory where the actual software is located.

So my question is, is it inefficient to have a symbolic link to a symbolic link to another file (for, say, a C++ header that may be included dozens or more times during a compile)?

Example directory tree:

/project/include/
                 x_header1.h -> /project/src/csci_x/include/header1.h
                 x_header2.h -> /project/src/csci_x/include/header2.h
/project/src/csci_x/
                    include/
                            header1.h -> /project/src/csci_x/local_1/cxx/header1.h
                            header2.h -> /project/src/csci_x/local_2/cxx/header2.h
                    local_1/cxx/
                                module1.cpp
                                header1.h
                    local_2/cxx/
                                module2.cpp
                                header2.h

© Super User or respective owner

Related posts about linux

Related posts about symbolic-link