poppler/poppler-0.90.0-position-independent-code.patch
Marek Kasik 1ef95951ba Position independent code
Compile poppler with position independent code turned on.
Otherwise it doesn't build on Fedora 33.

Resolves: #1673727
2020-07-10 19:31:03 +02:00

13 lines
301 B
Diff

--- 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)