--- poppler-0.90.0/CMakeLists.txt
+++ poppler-0.90.0/CMakeLists.txt
@@ -17,6 +17,9 @@ else()
   set(THREADS_PREFER_PTHREAD_FLAG TRUE)
   find_package(Threads)
 endif()
+
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
 include(TestBigEndian)
 test_big_endian(WORDS_BIGENDIAN)
 include(CheckFileOffsetBits)
