The test dlmopens 10 namespaces recursively, which requires a glibc
tunable setting, otherwise it may run out of static TLS.
$(objpfx)tst-audit-tlsdesc-dlopen.out: $(objpfx)tst-auditmod-tlsdesc.so
tst-audit-tlsdesc-dlopen-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so
+tst-dlmopen-twice-ENV = GLIBC_TUNABLES=glibc.rtld.nns=10
$(objpfx)tst-dlmopen-twice.out: \
$(objpfx)tst-dlmopen-twice-mod1.so \
$(objpfx)tst-dlmopen-twice-mod2.so
recurse (1);
/* Then with nesting. The constant needs to be less than the
- internal DL_NNS namespace constant. */
+ glibc.rtld.nns tunable (which is between 1 and DL_NNS). */
recurse (10);
return 0;
}