[Scons-users] Symbolic links issue

Erling D. Andersen e.d.andersen at mosek.com
Thu Jun 26 01:09:59 EDT 2014


Hi Bill

Here is the code

   env.Symlink(source = dll, target = '%s/${SHLIBPREFIX}%s${SHLIBSUFFIX}' %
(bdir,dllbasename))

Is that what you mean?



On Tue, Jun 24, 2014 at 7:01 PM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> Erling,
>
> Can you post the logic you are using to create the symlink(s)?
>
> -Bill
>
>
> On Thu, Jun 12, 2014 at 1:35 AM, Erling D. Andersen <
> e.d.andersen at mosek.com> wrote:
>
>> We use scons to create so symbolic to an shared object (.so file) now
>> that give rise to the error
>>
>>   scons: *** [bld/gram/final/default/intelc-14.0.1/dll/libmosek64.so] File exists
>>
>>
>> Here is the diagnose behind the problem.
>>
>>
>> When we rebuild the shared object then of course
>>
>>   1. The shared object target is deleted
>>   2. The symbolic link should be deleted.
>>
>> Now if it happens to delete the shared object first then symbolic does
>> ***NOT*** get deleted because the file it points does not exists.
>> Now if it happens to delete symbolic link first it works fine.
>>
>> How does scons decide when to delete symbolic links? Anyone knows where
>> that decision is made in source code?
>>
>> --
>> Erling D. Andersen
>>
>> MOSEK APS
>> Fruebjergvej 3, Box 16,
>> DK-2100 Copenhagen O
>>
>> Ph: +4539179907
>> Mo: +452362920
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> http://four.pairlist.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
>


-- 
Erling D. Andersen

MOSEK APS
Fruebjergvej 3, Box 16,
DK-2100 Copenhagen O

Ph: +4539179907
Mo: +452362920
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140626/8b73aaf7/attachment.html>


More information about the Scons-users mailing list