FO
$ gcc main.f90 test.o -lgomp -lpthread -lgfortran -lquadmath -static
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/10/libgomp.a(target.o): in function `gomp_target_init':
(.text+0x33c): undefined reference to `dlopen'
/usr/bin/ld: (.text+0x351): undefined reference to `dlsym'
/usr/bin/ld: (.text+0x384): undefined reference to `dlclose'