garyo edited this page Dec 13, 2014 · 1 revision

This page explains how to correctly create symbolic links.

Creating symbolic links is required when you create a shared library. You'll need to set up a link from the soname to the real name.

Assume the files in your project are

  • some_code.c
  • sconstruct
  • backend/some_code.c
  • backend/sconstruct Assume somehow you have built backend/ Then you wish to create two soft links in directory backend, named pointing to, and pointing to For some reason (e.g., different compiling option between the folders), you use sconstruct and backend\sconstruct separately to compile different folders.

Here is a solution.

In sconstruct:

  • env.SConscript('backend/sconstruct') In backend/sconstruct:

  • env.Command('', '', 'ln -s ${SOURCE.file} $TARGET')

  • env.Command('', '', 'ln -s ${SOURCE.file} $TARGET')

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.