<div dir="ltr"><div dir="ltr"><br><div><br></div><div>Hello,</div><div>I want create for one of my application a Linux binary which run on all current linux system running x86_64 processor.</div><div><br></div><div>by example, I uses -static-libgcc -static-libstdc++ when I link my app , because I'm not sure found recent version of this lib</div><div>I also use -lrt to prevent search some tims function added on recent GLIBC</div><div><br></div><div>With openssl 1.1.0, I had no problem related to openssl</div><div><br></div><div>With openssl 1.1.1, there is somes modern function searched at compile on recent library</div><div><br></div><div>So, I just run these command</div><div><div>sed -i -e 's/__ELF__/__ELF_and_sure_modern__/g' ./crypto/rand/rand_unix.c</div><div>sed -i -e 's/__GLIBC_PREREQ/__GLIBC__not_use_PREREQ/g' ./crypto/rand/rand_unix.c</div><div>sed -i -e 's/__GLIBC_PREREQ/__GLIBC__not_use_PREREQ/g' ./crypto/getenv.c</div><div>sed -i -e 's/__GLIBC_PREREQ/__GLIBC__not_use_PREREQ/g' ./crypto/crypto.c</div><div>sed -i -e 's/__GLIBC_PREREQ/__GLIBC__not_use_PREREQ/g' ./crypto/uid.c</div></div><div><br></div><div>with this modification, I'm sure that checking of modern API fail, and I use previous api (like if I compile on oldest linux).</div><div><br></div><div>I suggest offering an option to not trying using these modern GLICBC_PREREQ , or pehaps uses dl (when openssl is compiled to uses dl)</div><div><br></div><div>regards!</div></div></div>