I am attempting to compile
me@e:~/Dir$ gcc -O4 -o new new.c -Wall -pedantic -std=gnu11 -lm -fopenmp -static
which gives a warning
/usr/lib/gcc/x86_64-linux-gnu/5/libgomp.a(target.o): In function `gomp_target_init':
(.text+0xba): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
The goal is to make this program statically linked so 'new' will run on my laptop and the server.
how can I use 'shared libraries from the glibc version used for linking' in gcc or clang?