Re: SharedLIbrary with SHLIBVERSION
Bill Deegan <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CE8pAtc3d+tYez+=3p7cicno4-O=tFQ=0miEb0A2zNNTA@mail.gmail.com> |
On Tue, Apr 23, 2019 at 10:42 AM Paweł Tomulik <[email protected]> wrote: > W dniu 19.04.2019 o 23:03, Jason Kenny pisze: > > Just a quick question. > > shouldn't SharedLIbrary() return the symlinks that it will generate? they > are targets it generates however it does not return nodes to these items in > the list > > example: > > out = env.SharedLibrary(target='mylib',source="a.c", SHLIBVERSION='1.2.3') > print([str(i) for i in out]) > > results in the > ['libmylib.so.1.2.3'] > > I would have expected: > ['libmylib.so.1.2.3','libmylib.so.1.2','libmylib.so.1','libmylib.so'] > > > Symlinks get created as side effects of out[0]. You may find them in > out[0].side_effects. > > > Mixing library with symlinks in one target list could break (alerady > existsing) codes like this > > > lib = env.SharedLibrary(....) > > prg = env.Program(..., LIBS = lib) > Not that this already isn't safe to use on windows as lib will contain both the dll and the .lib (in most cases) -Bill _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users