/lib/ld-linux-x86-64.so.2 dynamic linker

I’m trying to create compile a c++ library, but I want the dynamic linker to be /lib/ld-linux-x86-64.so.2 using gcc-7 compiler inside an fhs-env, but I can’t get this working.