I see the makefile switches are gone so I assume the answer to Belegdol's question is no.
Let's make a step further: I'm going to write some patches for Ubuntu, as using bundled libraries in official packages is deprecated whenever possible (and other distros have similar recommendations).
I'd like to make things the right way and have them merged upstream, so I'm asking for blessing in
- splitting scripts/src/3rdparty.lua into several lua scripts, one for each library
- adding a switch in the makefile for each library and have it include the lua script OR set LDFLAGS as appropriate, i.e.
SCRIPTS += scripts/src/3rdparty/expat.lua
LDFLAGS += -lexpat
Any further suggestion is welcome, thanks.