Fix feature tests for older cmake
I tried to build poppler 0.74 on Ubuntu Xenial and CMake and all cmake check_function_exists()
feature tests would fail with the same error:
relocation R_X86_64_32 against `start_routine' can not be used when making a shared object; recompile with -fPIC
relocation R_X86_64_PC32 against undefined symbol
`pthread_create@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
relocation R_X86_64_32S against `fseeko' can not be used when making a shared object; recompile with -fPIC
...
...
Full build log: https://gist.github.com/jeroen/f25718905bef640ce2c7410e82750377
It seems cmake is not using the correct flags for the feature tests. The current MR fixed the problem.
Edited by Jeroen Ooms