Setting the stack size only works for executables, for shared libraries the host application controls it.