PackageCompiler : target GLIBC version when creating an app?

I’ve recently created an Ubuntu VM with the latest LTS release (22.04 – jammy) to build and distribute relocatable apps.

After transferring an app to another machine with an older Ubuntu install, I get this error:

./myApp: /lib/x86_64-linux-gnu/ version `GLIBC_2.34' not found (required by ./myApp)

Right. So, is there a way to create_app that links to a specific version of glibc compatible with older installs ?

Having multiple VMs or containers with different versions of Ubuntu for builds isn’t a problem, but I’m asking out of curiosity in case I missed something that would be simpler.

Many thanks!