Filter a library from the list of libraries?
"Kuhl, Brian via Boost-build" <[email protected]>
| Newsgroups | gmane.comp.lib.boost.build |
|---|---|
| Message-ID | <6C486AB80682E24095E3E77A408D68F201498ED7BE@ALA-MBD.corp.ad.wrs.com> |
(Many thanks to Steven on answering my last question so quickly)
..
My next challenge is to remove the -ldl library from the list of libraries handed to the shared library linker a.k.a the link.dll action.
I'm trying to use MATCH for this with no success.
local libraries = [ feature.get-values <libraries> : $(options) ] ;
toolset.flags clang-vxworks.link LIBRARIES : $(libraries) ;
# link shared libraries without libld.a
for local e in $(libraries)
{
local dll_libs = [ MATCH "-l(?!dl)\w+" : $(e) ] ;
}
toolset.flags clang-vxworks.link.dll DLL_LIBS : $(dll_libs) ;
Could someone identify my issue? (perhaps something in the regex needs escaping?) or perhaps suggest a better method to accomplish the same thing?
Thanks,
Brian Kuhl
Wind River
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build