Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
script:
- ./bootstrap.sh
- - ./configure --prefix=/usr
+ - CFLAGS='-g -O0 -std=c11 -DDEBUG -DVERBOSE -DRESOLVE_NOW -Wall -Werror' ./configure --prefix=/usr
- make -j4
- (cd tests && make tests)
- echo 1 | sudo tee /sys/fs/cgroup/cpuset/cgroup.clone_children || true
}
/* First try loading using ld.so */
+#ifdef RESOLVE_NOW
+ dlopen_handle = dlopen("liblxcfs.so", RTLD_NOW);
+#else
dlopen_handle = dlopen("liblxcfs.so", RTLD_LAZY);
+#endif
if (dlopen_handle) {
lxcfs_debug("Opened liblxcfs.so");
goto good;